From 3d7980a148129c614126625cf2f5e8fe0f0ffb90 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 3 Feb 2012 08:03:19 +0000 Subject: [PATCH] in loaded content fix PHP will now load content into textarea container, but replacing with altered tag This ensures the actual textarea container isn't escpaed early This replacement is reversed back to the original by the contentCleanup function --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index 758300e..3588e59 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -29,7 +29,7 @@ if ($_GET['action']=="load") { if ($_SESSION['userLevel'] == 10 || ($_SESSION['userLevel'] < 10 && $bannedFile==false)) { echo ''; $loadedFile = file_get_contents($file); - echo ''; + echo '","",$loadedFile).''; } else { echo ''; echo '';