[wp-cvs] wordpress wp-comments-post.php, 1.12, 1.13 wp-pass.php, 1.4, 1.5

Ryan Boren rboren at users.sourceforge.net
Fri Jun 11 03:02:42 CDT 2004


Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750

Modified Files:
	wp-comments-post.php wp-pass.php 
Log Message:
Get our slashes straight.

Index: wp-pass.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-pass.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** wp-pass.php	20 Apr 2004 22:56:36 -0000	1.4
--- wp-pass.php	11 Jun 2004 08:02:39 -0000	1.5
***************
*** 6,10 ****
  */
  require(dirname(__FILE__) . '/wp-config.php');
! setcookie('wp-postpass_'.$cookiehash, $_POST['post_password'], time()+60*60*24*30);
  header('Location: ' . $_SERVER['HTTP_REFERER']);
  
--- 6,10 ----
  */
  require(dirname(__FILE__) . '/wp-config.php');
! setcookie('wp-postpass_'.$cookiehash, stripslashes($_POST['post_password']), time()+60*60*24*30);
  header('Location: ' . $_SERVER['HTTP_REFERER']);
  

Index: wp-comments-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-comments-post.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** wp-comments-post.php	24 May 2004 08:22:18 -0000	1.12
--- wp-comments-post.php	11 Jun 2004 08:02:39 -0000	1.13
***************
*** 87,93 ****
  do_action('comment_post', $comment_ID);
  
! setcookie('comment_author_' . $cookiehash, $author, time() + 30000000, COOKIEPATH);
! setcookie('comment_author_email_' . $cookiehash, $email, time() + 30000000, COOKIEPATH);
! setcookie('comment_author_url_' . $cookiehash, $url, time() + 30000000, COOKIEPATH);
  
  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
--- 87,93 ----
  do_action('comment_post', $comment_ID);
  
! setcookie('comment_author_' . $cookiehash, stripslashes($author), time() + 30000000, COOKIEPATH);
! setcookie('comment_author_email_' . $cookiehash, stripslashes($email), time() + 30000000, COOKIEPATH);
! setcookie('comment_author_url_' . $cookiehash, stripslashes($url), time() + 30000000, COOKIEPATH);
  
  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');




More information about the cvs mailing list