diff options
Diffstat (limited to 'wp-admin/theme-editor.php')
| -rw-r--r-- | wp-admin/theme-editor.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 037cc91..7832b91 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -45,11 +45,15 @@ case 'update': $f = fopen($real_file, 'w+'); fwrite($f, $newcontent); fclose($f); - wp_redirect("theme-editor.php?file=$file&theme=$theme&a=te"); + $location = "theme-editor.php?file=$file&theme=$theme&a=te"; } else { - wp_redirect("theme-editor.php?file=$file&theme=$theme"); + $location = "theme-editor.php?file=$file&theme=$theme"; } + $location = wp_kses_no_null($location); + $strip = array('%0d', '%0a'); + $location = str_replace($strip, '', $location); + header("Location: $location"); exit(); break; |
