From 839698993a07e8b5773e48e1cf4540f4ef536299 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 24 Feb 2005 18:13:02 +0000 Subject: [PATCH] Preserve entity encoding in plugin editor. http://mosquito.wordpress.org/view.php?id=957 Props: coffee2code git-svn-id: http://svn.automattic.com/wordpress/trunk@2372 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugin-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index ff65035ad8..16de1cfe9a 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -67,7 +67,7 @@ default: if (!$error) { $f = fopen($real_file, 'r'); $content = fread($f, filesize($real_file)); - $content = wp_specialchars($content); + $content = htmlspecialchars($content); } ?>