[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
- Previous message: [wp-cvs] wordpress/wp-admin admin-functions.php, 1.44,
1.45 edit-page-form.php, 1.4, 1.5 edit-pages.php, 1.2,
1.3 post.php, 1.85, 1.86 upgrade-schema.php, 1.9,
1.10 wp-admin.css, 1.67, 1.68
- Next message: [wp-cvs] wordpress wp-comments-post.php, 1.15, 1.16 wp-login.php,
1.36, 1.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [wp-cvs] wordpress/wp-admin admin-functions.php, 1.44,
1.45 edit-page-form.php, 1.4, 1.5 edit-pages.php, 1.2,
1.3 post.php, 1.85, 1.86 upgrade-schema.php, 1.9,
1.10 wp-admin.css, 1.67, 1.68
- Next message: [wp-cvs] wordpress wp-comments-post.php, 1.15, 1.16 wp-login.php,
1.36, 1.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list