[wp-cvs] wordpress/wp-admin options.php, 1.32, 1.33 post.php, 1.86, 1.87

Matthew Mullenweg saxmatt at users.sourceforge.net
Tue Oct 5 08:35:24 UTC 2004


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

Modified Files:
	options.php post.php 
Log Message:
Changes to how we do redirects.

Index: options.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/options.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** options.php	17 Sep 2004 13:05:06 -0000	1.32
--- options.php	5 Oct 2004 08:35:21 -0000	1.33
***************
*** 87,90 ****
--- 87,91 ----
  	$referred = str_replace('?updated=true' , '', $_SERVER['HTTP_REFERER']);
  	$goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
+ 	$goback = preg_replace('|[^a-z?=&/~.:_-]|i', '', $goback);
      header('Location: ' . $goback);
      break;

Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** post.php	5 Oct 2004 08:27:13 -0000	1.86
--- post.php	5 Oct 2004 08:35:21 -0000	1.87
***************
*** 459,462 ****
--- 459,463 ----
  	$sendback = $_SERVER['HTTP_REFERER'];
  	if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
+ 	$sendback = preg_replace('|[^a-z?=&/~.:_-]|i', '', $sendback);
  	header ('Location: ' . $sendback);
  	do_action('delete_post', $post_id);




More information about the cvs mailing list