Permalink
Browse files

more fix realemail/fakeemail/homepage stuff

  • Loading branch information...
pudge committed Jul 31, 2000
1 parent 53b3ff7 commit 5a3c2cbe222936c3b63c4eb2e1dc5e071391d821
Showing with 5 additions and 1 deletion.
  1. +5 −1 Slash.pm
View
@@ -1203,6 +1203,9 @@ sub stripByMode {
$fmode ||= 'nohtml';
$str =~ s/(\S{90})/$1 /g unless $no_white_fix;
+ # ASCII only ?
+# $str =~ s/[^\011\040\033-176]/sprintf '&#%d;', ord $1/ge;
+
if ($fmode eq 'literal' || $fmode eq 'exttrans' || $fmode eq 'attribute') {
# Encode all HTML tags
$str =~ s/&/&/g;
@@ -1226,7 +1229,8 @@ sub stripByMode {
} elsif ($fmode eq 'attribute') {
$str =~ s/"/"/g;
- $str =~ s/'/'/g;
+# $str =~ s/'/'/g; # ' should be OK if we use
+ # " consistently
} else {
$str = stripBadHtml($str);

0 comments on commit 5a3c2cb

Please sign in to comment.