Make WordPress Core


Ignore:
Timestamp:
10/05/2004 08:35:22 AM (21 years ago)
Author:
saxmatt
Message:

Changes to how we do redirects.

File:
1 edited

Legend:

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

    r1739 r1748  
    9999header('Pragma: no-cache');
    100100$location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];
     101$location = preg_replace('|[^a-z?=&/~.:_-]|i', '', $location);
     102
    101103if ($is_IIS) {
    102104    header("Refresh: 0;url=$location");
Note: See TracChangeset for help on using the changeset viewer.