WordPress.org

Make WordPress Core


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

Changes to how we do redirects.

File:
1 edited

Legend:

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

    r1747 r1748  
    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);
    461462    header ('Location: ' . $sendback);
    462463    do_action('delete_post', $post_id);
Note: See TracChangeset for help on using the changeset viewer.