summaryrefslogtreecommitdiffstats
path: root/wp-admin/theme-editor.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-10-03 10:52:54 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-10-03 10:52:54 +0000
commit23c0a299ada091cdeece968ad5cd3bdd20f5ef3c (patch)
tree9bdf04e7880e6188eca43a3bd161320568f205e4 /wp-admin/theme-editor.php
parent081300d1c11041e8b678f9cb0736468aa11e94f1 (diff)
downloadwordpress-mu-23c0a299ada091cdeece968ad5cd3bdd20f5ef3c.tar.gz
wordpress-mu-23c0a299ada091cdeece968ad5cd3bdd20f5ef3c.tar.xz
wordpress-mu-23c0a299ada091cdeece968ad5cd3bdd20f5ef3c.zip
WP Merge to rev 4273
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@788 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/theme-editor.php')
-rw-r--r--wp-admin/theme-editor.php8
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;