Make WordPress Core

Changeset 4268


Ignore:
Timestamp:
10/02/2006 07:26:12 PM (20 years ago)
Author:
ryan
Message:

Do only the minimum sanitization on the URL redirect. fixes #2994

File:
1 edited

Legend:

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

    r4111 r4268  
    4545                fwrite($f, $newcontent);
    4646                fclose($f);
    47                 wp_redirect("theme-editor.php?file=$file&theme=$theme&a=te");
     47                $location = "theme-editor.php?file=$file&theme=$theme&a=te";
    4848        } else {
    49                 wp_redirect("theme-editor.php?file=$file&theme=$theme");
     49                $location = "theme-editor.php?file=$file&theme=$theme";
    5050        }
    5151
     52        $location = wp_kses_no_null($location);
     53        $strip = array('%0d', '%0a');
     54        $location = str_replace($strip, '', $location);
     55        header("Location: $location");
    5256        exit();
    5357
Note: See TracChangeset for help on using the changeset viewer.