Masato Kikuhara
en-sf****@users*****
2005年 7月 7日 (木) 21:20:32 JST
Index: affelio/apps/diary/external_blog.cgi diff -u affelio/apps/diary/external_blog.cgi:1.6 affelio/apps/diary/external_blog.cgi:1.7 --- affelio/apps/diary/external_blog.cgi:1.6 Wed Jul 6 07:06:14 2005 +++ affelio/apps/diary/external_blog.cgi Thu Jul 7 21:20:31 2005 @@ -119,12 +119,13 @@ $html =~ s/&/&/g; $html =~ s/['"]/"/g; + $html =~ s/<[^>]*>//g; $html =~ s/</</g; $html =~ s/>/>/g; # allow <br>,<p>,<a>,<i>,<b>,<strong>,<em>,<u>,<font> - $html =~ s/<(\/?)(br|p|a|i|b|strong|em|u|font)[^&]*>/<$1$2$3>/gi; - $html =~ s/<a +href="([^&]*)"([^&]*)>/<a href="$1" $2>/gi; +# $html =~ s/<(\/?)(br|p|a|i|b|strong|em|u|font)[^&]*>/<$1$2$3>/gi; +# $html =~ s/<a +href="([^&]*)"([^&]*)>/<a href="$1" $2>/gi; return $html; }