Changeset 4269

Show
Ignore:
Timestamp:
10/02/06 19:26:47 (2 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-admin/theme-editor.php

    r3937 r4269  
    5959        fwrite($f, $newcontent); 
    6060        fclose($f); 
    61         wp_redirect("theme-editor.php?file=$file&theme=$theme&a=te")
     61        $location = "theme-editor.php?file=$file&theme=$theme&a=te"
    6262    } else { 
    63         wp_redirect("theme-editor.php?file=$file&theme=$theme")
     63        $location = "theme-editor.php?file=$file&theme=$theme"
    6464    } 
    6565 
     66    $location = wp_kses_no_null($location); 
     67    $strip = array('%0d', '%0a'); 
     68    $location = str_replace($strip, '', $location); 
     69    header("Location: $location"); 
    6670    exit(); 
    6771