From 336ef01deeabeacc79058e242bdc9f456d087e67 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 8 Feb 2013 10:12:35 +0000 Subject: [PATCH] loadedFile to replace all & chars for textarea This is so & becomes & ...what you draw out of the textarea is then & In turn this allows all HTML entities of this style to work and as we aren't using PHP's htmlentities(), we don't end with junk chars on slanted apostrophes, degree symbols etc. --- 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 3d25f3a..cf7df44 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -28,7 +28,7 @@ if ($_GET['action']=="load") { echo 'top.ICEcoder.shortURL = top.ICEcoder.rightClickedFile = top.ICEcoder.thisFileFolderLink = "'.$fileLoc."/".$fileName.'";'; echo ''; $loadedFile = file_get_contents($file); - echo '","",$loadedFile).''; + echo '","",str_replace("&","&",$loadedFile)).''; } else if (strpos(finfo_file($finfo, $file),"image")===0) { echo ''; } else {