diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-09-17 19:55:22 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-09-17 19:55:22 +0000 |
commit | 78ff2d2fee65ce9280d2172c05db32f49c3f7fa0 (patch) | |
tree | 4cc1311214a7954a0be01877381325ee9d598d05 /web | |
parent | 65047e354ac574127f190b08d7d7b371e4ed9538 (diff) |
Modified html2x.pl URL validation regex:
+ allow port number in URL
+ allow : in URL path
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1024 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'web')
-rwxr-xr-x | web/html2x.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html2x.pl b/web/html2x.pl index 43218682d..86f71196e 100755 --- a/web/html2x.pl +++ b/web/html2x.pl @@ -19,7 +19,7 @@ if ($format =~ /^markdown\+$/) { } # Validate URL and format -unless ($url =~ /^(https?:\/\/)?[\w#_-]+(\.[\w#_-]+)+[\w\/#=?_.-]*$/) { +unless ($url =~ /^(https?:\/\/)?[\w#_-]+(\.[\w#_-]+)+(:\d+)?[\w\/#=:?_.-]*$/) { die "Illegal URL: $url\n" ; } unless ($format =~ /^markdown\+?|rst|latex|context|rtf|man|docbook$/) { |