WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/05/2004 04:22:31 PM (17 years ago)
Author:
saxmatt
Message:

Better redirect cleaning.

File:
1 edited

Legend:

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

    r1748 r1751  
    9090}
    9191
    92 setcookie('comment_author_' . $cookiehash, stripslashes($author), time() + 30000000, COOKIEPATH);
    93 setcookie('comment_author_email_' . $cookiehash, stripslashes($email), time() + 30000000, COOKIEPATH);
    94 setcookie('comment_author_url_' . $cookiehash, stripslashes($url), time() + 30000000, COOKIEPATH);
     92setcookie('comment_author_' . COOKIEHASH, stripslashes($author), time() + 30000000, COOKIEPATH);
     93setcookie('comment_author_email_' . COOKIEHASH, stripslashes($email), time() + 30000000, COOKIEPATH);
     94setcookie('comment_author_url_' . COOKIEHASH, stripslashes($url), time() + 30000000, COOKIEPATH);
    9595
    9696header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
     
    9898header('Cache-Control: no-cache, must-revalidate');
    9999header('Pragma: no-cache');
    100 $location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
    101 $location = preg_replace('|[^a-z?=&/~.:_-]|i', '', $location);
     100
     101$location = get_permalink($comment_ID);
    102102
    103103if ($is_IIS) {
Note: See TracChangeset for help on using the changeset viewer.