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/options.php

    r1748 r1751  
    8787    $referred = str_replace('?updated=true' , '', $_SERVER['HTTP_REFERER']);
    8888    $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
    89     $goback = preg_replace('|[^a-z?=&/~.:_-]|i', '', $goback);
     89    $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback);
    9090    header('Location: ' . $goback);
    9191    break;
Note: See TracChangeset for help on using the changeset viewer.