[wp-cvs] wordpress/wp-admin post.php,1.73,1.74
Ryan Boren
rboren at users.sourceforge.net
Fri Aug 6 01:28:53 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30416/wp-admin
Modified Files:
post.php
Log Message:
In sanitize_title(), strip_tags() before sanitizing, not after. In post.php, if post name is empty, pass the post title to the sanitizer.
Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** post.php 1 Aug 2004 08:04:39 -0000 1.73
--- post.php 6 Aug 2004 01:28:50 -0000 1.74
***************
*** 303,307 ****
//if (!$_POST['ping_status']) $ping_status = get_settings('default_ping_status');
$post_password = $_POST['post_password'];
! $post_name = sanitize_title($_POST['post_name'], $post_ID);
if (empty($post_name)) $post_name = sanitize_title($post_title);
$trackback = $_POST['trackback_url'];
--- 303,311 ----
//if (!$_POST['ping_status']) $ping_status = get_settings('default_ping_status');
$post_password = $_POST['post_password'];
! $post_name = $_POST['post_name'];
! if (empty($post_name)) {
! $post_name = $post_title;
! }
! $post_name = sanitize_title($post_name, $post_ID);
if (empty($post_name)) $post_name = sanitize_title($post_title);
$trackback = $_POST['trackback_url'];
More information about the cvs
mailing list