Make WordPress Core


Ignore:
Timestamp:
06/11/2004 08:02:40 AM (22 years ago)
Author:
rboren
Message:

Get our slashes straight.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r1399 r1405  
    5151                $excerpt = balanceTags($_POST['excerpt']);
    5252                $excerpt = format_to_post($excerpt);
    53                 $post_title = addslashes($_POST['post_title']);
     53                $post_title = $_POST['post_title'];
    5454                $post_categories = $_POST['post_category'];
    5555                if(get_settings('use_geo_positions')) {
     
    6969                $ping_status = $_POST['ping_status'];
    7070                if (empty($ping_status)) $ping_status = get_settings('default_ping_status');
    71                 $post_password = addslashes(stripslashes($_POST['post_password']));
     71                $post_password = $_POST['post_password'];
    7272               
    7373                if (empty($post_name))
     
    279279                $excerpt = balanceTags($_POST['excerpt']);
    280280                $excerpt = format_to_post($excerpt);
    281                 $post_title = addslashes($_POST['post_title']);
     281                $post_title = $_POST['post_title'];
    282282                if(get_settings('use_geo_positions')) {
    283283                        $latf = floatval($_POST["post_latf"]);
     
    302302                if (empty($ping_status)) $ping_status = 'closed';
    303303                //if (!$_POST['ping_status']) $ping_status = get_settings('default_ping_status');
    304                 $post_password = addslashes($_POST['post_password']);
     304                $post_password = $_POST['post_password'];
    305305                $post_name = sanitize_title($_POST['post_name']);
    306306                if (empty($post_name)) $post_name = sanitize_title($post_title);
     
    671671        $newcomment_author_email = $_POST['newcomment_author_email'];
    672672        $newcomment_author_url = $_POST['newcomment_author_url'];
    673         $newcomment_author = addslashes($newcomment_author);
    674         $newcomment_author_email = addslashes($newcomment_author_email);
    675         $newcomment_author_url = addslashes($newcomment_author_url);
    676673
    677674        if (($user_level > 4) && (!empty($_POST['edit_date']))) {
Note: See TracChangeset for help on using the changeset viewer.