diff options
author | Eric Wong <e@80x24.org> | 2016-05-19 19:23:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-19 21:23:56 +0000 |
commit | e197631142c0236e59460310aaecb38ccacfad2e (patch) | |
tree | 92bca8d57faacac5967576d9cfc333cb1bc4e086 /lib/PublicInbox/View.pm | |
parent | 68a85e8dd7d01578a10a4bfa24818cfe53200690 (diff) | |
download | public-inbox-e197631142c0236e59460310aaecb38ccacfad2e.tar.gz |
We shall ensure links continue working for this.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 326da4cb..2303a1fa 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -262,7 +262,7 @@ sub attach_link ($$$$) { $desc = '' unless defined $desc; $desc = ': '.$desc if $desc; my $sfn; - if (defined $fn && $fn =~ /\A[\w-]+\.[a-z0-9]+\z/) { + if (defined $fn && $fn =~ /\A[\w\.-]+[a-zA-Z0-9]\z/) { $sfn = $fn; } elsif ($ct eq 'text/plain') { $sfn = 'a.txt'; |