Permalink
Browse files

do charrefs here too

  • Loading branch information...
1 parent 0f30daa commit 0da0c2aa3d69418d3c954abc91a3934998663742 @pudge pudge committed Sep 3, 2003
Showing with 1 addition and 0 deletions.
  1. +1 −0 Slash/Utility/Data/Data.pm
View
1 Slash/Utility/Data/Data.pm
@@ -1688,6 +1688,7 @@ sub fudgeurl {
$url =~ s/&#(.+?);//g;
# we don't like SCRIPT at the beginning of a URL
my $decoded_url = decode_entities($url);
+ $decoded_url =~ s{ &(\#?[a-zA-Z0-9]+);? } { approveCharref($1) }gex;
return $decoded_url =~ /^[\s\w]*script\b/i ? undef : $url;
}
}

0 comments on commit 0da0c2a

Please sign in to comment.