summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorRobert Hak <adiamas@rockbox.org>2003-03-19 20:22:39 +0000
committerRobert Hak <adiamas@rockbox.org>2003-03-19 20:22:39 +0000
commit8c8a606601c7df0c4cc21fab613cdf9e353e08b7 (patch)
treeb74e0ba003287cc2d01edfb2bfb6823784a61e51 /www
parent8025685146b9e766c46530b375e5e03827bf095c (diff)
downloadrockbox-8c8a606601c7df0c4cc21fab613cdf9e353e08b7.tar.gz
rockbox-8c8a606601c7df0c4cc21fab613cdf9e353e08b7.tar.bz2
rockbox-8c8a606601c7df0c4cc21fab613cdf9e353e08b7.zip
account for the # in anchor tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'www')
-rwxr-xr-xwww/faq2html.pl4
-rwxr-xr-xwww/txt2html.pl2
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 @@
-#!/usr/bin/perl
+#!/usr/local/bin/perl
# this is really a faq2html and should only be used for this purpose
@@ -6,7 +6,7 @@ sub fixline {
$_ =~ s/\</&lt;/g;
$_ =~ s/\>/&gt;/g;
- $_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
+ $_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
$_ =~ s/(\\|\/)$/$1&nbsp;/g; # clobber backslash on end of line
}
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 {
$_ =~ s/\</&lt;/g;
$_ =~ s/\>/&gt;/g;
- $_ =~ s/(http:\/\/([a-zA-Z0-9_.\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
+ $_ =~ s/(http:\/\/([a-zA-Z0-9_.\#\/-]*)[^\) .\n])/\<a href=\"$1\"\>$1\<\/a\>/g;
$_ =~ s/(\\|\/)$/$1&nbsp;/g; # clobber backslash on end of line
}