[wp-cvs] wordpress/wp-admin post.php,1.83,1.84
Ryan Boren
rboren at users.sourceforge.net
Sat Sep 18 05:36:21 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13609
Modified Files:
post.php
Log Message:
Do not sanitize an empty title.
Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -d -r1.83 -r1.84
*** post.php 15 Sep 2004 15:09:37 -0000 1.83
--- post.php 18 Sep 2004 05:36:18 -0000 1.84
***************
*** 68,75 ****
$post_password = $_POST['post_password'];
! if (empty($post_name))
! $post_name = sanitize_title($post_title, $post_ID);
! else
$post_name = sanitize_title($post_name, $post_ID);
$trackback = $_POST['trackback_url'];
--- 68,78 ----
$post_password = $_POST['post_password'];
! if (empty($post_name)) {
! if (! empty($post_title)) {
! $post_name = sanitize_title($post_title, $post_ID);
! }
! } else {
$post_name = sanitize_title($post_name, $post_ID);
+ }
$trackback = $_POST['trackback_url'];
More information about the cvs
mailing list