diff options
-rwxr-xr-x | www/faq2html.pl | 4 | ||||
-rwxr-xr-x | www/txt2html.pl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/www/faq2html.pl b/www/faq2html.pl index eabe674828..15a2390986 100755 --- a/www/faq2html.pl +++ b/www/faq2html.pl | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/usr/bin/perl | 1 | #!/usr/local/bin/perl |
2 | 2 | ||
3 | # this is really a faq2html and should only be used for this purpose | 3 | # this is really a faq2html and should only be used for this purpose |
4 | 4 | ||
@@ -6,7 +6,7 @@ sub fixline { | |||
6 | $_ =~ s/\</</g; | 6 | $_ =~ s/\</</g; |
7 | $_ =~ s/\>/>/g; | 7 | $_ =~ s/\>/>/g; |
8 | 8 | ||
9 | $_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g; | 9 | $_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g; |
10 | 10 | ||
11 | $_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line | 11 | $_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line |
12 | } | 12 | } |
diff --git a/www/txt2html.pl b/www/txt2html.pl index 43c7fffa27..6e39e8dcaf 100755 --- a/www/txt2html.pl +++ b/www/txt2html.pl | |||
@@ -9,7 +9,7 @@ sub fixline { | |||
9 | $_ =~ s/\</</g; | 9 | $_ =~ s/\</</g; |
10 | $_ =~ s/\>/>/g; | 10 | $_ =~ s/\>/>/g; |
11 | 11 | ||
12 | $_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g; | 12 | $_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g; |
13 | 13 | ||
14 | $_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line | 14 | $_ =~ s/(\\|\/)$/$1 /g; # clobber backslash on end of line |
15 | } | 15 | } |