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-includes/template-functions-post.php

    r1393 r1405  
    103103
    104104    if (!empty($post->post_password)) { // if there's a password
    105         if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
     105        if (stripslashes($_COOKIE['wp-postpass_'.$cookiehash]) != $post->post_password) {  // and it doesn't match the cookie
    106106            $output = get_the_password_form();
    107107            return $output;
     
    179179    global $cookiehash;
    180180    $output = '';
    181     $output = stripslashes($post->post_excerpt);
     181    $output = $post->post_excerpt;
    182182    if (!empty($post->post_password)) { // if there's a password
    183183        if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
     
    189189    // If we haven't got an excerpt, make one in the style of the rss ones
    190190    if (($output == '') && $fakeit) {
    191         $output = $post->post_content;
     191        $output = stripslashes($post->post_content);
    192192        $output = strip_tags($output);
    193193        $blah = explode(' ', $output);
Note: See TracChangeset for help on using the changeset viewer.