[Affelio-cvs 551] CVS update: affelio/apps/diary

Back to archive index

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/</&lt;/g;
 	$html =~ s/>/&gt;/g;
 	
 	# allow <br>,<p>,<a>,<i>,<b>,<strong>,<em>,<u>,<font>
-	$html =~ s/&lt;(\/?)(br|p|a|i|b|strong|em|u|font)[^&]*&gt;/<$1$2$3>/gi;
-	$html =~ s/&lt;a +href=&quot;([^&]*)&quot;([^&]*)&gt;/<a href="$1" $2>/gi;
+#	$html =~ s/&lt;(\/?)(br|p|a|i|b|strong|em|u|font)[^&]*&gt;/<$1$2$3>/gi;
+#	$html =~ s/&lt;a +href=&quot;([^&]*)&quot;([^&]*)&gt;/<a href="$1" $2>/gi;
 	
 	return $html;
 }


Affelio-cvs メーリングリストの案内
Back to archive index