[wp-cvs] wordpress wp-comments-post.php,1.11.4.4,1.11.4.5
Matthew Mullenweg
saxmatt at users.sourceforge.net
Wed Dec 15 19:52:42 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14850
Modified Files:
Tag: WordPress-Ver-1_2-Branch
wp-comments-post.php
Log Message:
Backporting more
Index: wp-comments-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-comments-post.php,v
retrieving revision 1.11.4.4
retrieving revision 1.11.4.5
diff -C2 -d -r1.11.4.4 -r1.11.4.5
*** wp-comments-post.php 27 Nov 2004 23:04:06 -0000 1.11.4.4
--- wp-comments-post.php 15 Dec 2004 19:52:40 -0000 1.11.4.5
***************
*** 19,22 ****
--- 19,24 ----
$author = trim(strip_tags($_POST['author']));
+ if ( preg_match('/&#[0-9]{3};/i', $author) )
+ die();
$email = trim(strip_tags($_POST['email']));
***************
*** 30,33 ****
--- 32,39 ----
$comment = trim($_POST['comment']);
+
+ if ( preg_match('/&#[0-9]{3};/i', $comment) )
+ die();
+
$comment_post_ID = intval($_POST['comment_post_ID']);
$user_ip = $_SERVER['REMOTE_ADDR'];
More information about the cvs
mailing list