Permalink
Browse files

Bad anchor in regex for fixing # in URLs

  • Loading branch information...
pudge committed Apr 8, 2005
1 parent 251d288 commit 75f353d30244017bff31e089c54f9d245030ba81
Showing with 1 addition and 1 deletion.
  1. +1 −1 Slash/Utility/Data/Data.pm
@@ -2068,7 +2068,7 @@ sub fudgeurl {
if ($url =~ /#/) {
# no # is OK, unless ...
$url =~ s/#/%23/g;
- if ($url =~ m|^https?://$|i) {
+ if ($url =~ m|^https?://|i) {
# HTTP, in which case the first # is OK
$url =~ s/%23/#/;
}

0 comments on commit 75f353d

Please sign in to comment.