From a818b4e6a21b9916087c1fca93f4f4114e85b7d2 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@2372 602fd350-edb4-49c9-b593-d223f7449a82 --- 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); } ?>