Make WordPress Core


Ignore:
Timestamp:
06/20/2009 05:49:50 PM (17 years ago)
Author:
westi
Message:

Introduce _deep_replace() and use it to improve the stripping of percent encoded values from urls. Fixes #10226 for 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/theme-editor.php

    r11530 r11616  
    6666
    6767        $location = wp_kses_no_null($location);
    68         $strip = array('%0d', '%0a');
    69         $location = str_replace($strip, '', $location);
     68        $strip = array('%0d', '%0a', '%0D', '%0A');
     69        $location = _deep_replace($strip, $location);
    7070        header("Location: $location");
    7171        exit();
Note: See TracChangeset for help on using the changeset viewer.