[wp-cvs] wordpress/wp-admin post.php,1.64,1.65
Ryan Boren
rboren at users.sourceforge.net
Fri Jun 11 03:02:42 CDT 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/wp-admin
Modified Files:
post.php
Log Message:
Get our slashes straight.
Index: post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/post.php,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** post.php 10 Jun 2004 08:28:38 -0000 1.64
--- post.php 11 Jun 2004 08:02:39 -0000 1.65
***************
*** 51,55 ****
$excerpt = balanceTags($_POST['excerpt']);
$excerpt = format_to_post($excerpt);
! $post_title = addslashes($_POST['post_title']);
$post_categories = $_POST['post_category'];
if(get_settings('use_geo_positions')) {
--- 51,55 ----
$excerpt = balanceTags($_POST['excerpt']);
$excerpt = format_to_post($excerpt);
! $post_title = $_POST['post_title'];
$post_categories = $_POST['post_category'];
if(get_settings('use_geo_positions')) {
***************
*** 69,73 ****
$ping_status = $_POST['ping_status'];
if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
! $post_password = addslashes(stripslashes($_POST['post_password']));
if (empty($post_name))
--- 69,73 ----
$ping_status = $_POST['ping_status'];
if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
! $post_password = $_POST['post_password'];
if (empty($post_name))
***************
*** 279,283 ****
$excerpt = balanceTags($_POST['excerpt']);
$excerpt = format_to_post($excerpt);
! $post_title = addslashes($_POST['post_title']);
if(get_settings('use_geo_positions')) {
$latf = floatval($_POST["post_latf"]);
--- 279,283 ----
$excerpt = balanceTags($_POST['excerpt']);
$excerpt = format_to_post($excerpt);
! $post_title = $_POST['post_title'];
if(get_settings('use_geo_positions')) {
$latf = floatval($_POST["post_latf"]);
***************
*** 302,306 ****
if (empty($ping_status)) $ping_status = 'closed';
//if (!$_POST['ping_status']) $ping_status = get_settings('default_ping_status');
! $post_password = addslashes($_POST['post_password']);
$post_name = sanitize_title($_POST['post_name']);
if (empty($post_name)) $post_name = sanitize_title($post_title);
--- 302,306 ----
if (empty($ping_status)) $ping_status = 'closed';
//if (!$_POST['ping_status']) $ping_status = get_settings('default_ping_status');
! $post_password = $_POST['post_password'];
$post_name = sanitize_title($_POST['post_name']);
if (empty($post_name)) $post_name = sanitize_title($post_title);
***************
*** 671,677 ****
$newcomment_author_email = $_POST['newcomment_author_email'];
$newcomment_author_url = $_POST['newcomment_author_url'];
- $newcomment_author = addslashes($newcomment_author);
- $newcomment_author_email = addslashes($newcomment_author_email);
- $newcomment_author_url = addslashes($newcomment_author_url);
if (($user_level > 4) && (!empty($_POST['edit_date']))) {
--- 671,674 ----
More information about the cvs
mailing list