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-admin/post.php

    r1748 r1751  
    459459    $sendback = $_SERVER['HTTP_REFERER'];
    460460    if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
    461     $sendback = preg_replace('|[^a-z?=&/~.:_-]|i', '', $sendback);
     461    $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
    462462    header ('Location: ' . $sendback);
    463463    do_action('delete_post', $post_id);
Note: See TracChangeset for help on using the changeset viewer.