mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-05 16:24:00 +01:00
</textarea> in loaded content fix
PHP will now load content into textarea container, but replacing </textarea> 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
This commit is contained in:
@@ -29,7 +29,7 @@ if ($_GET['action']=="load") {
|
||||
if ($_SESSION['userLevel'] == 10 || ($_SESSION['userLevel'] < 10 && $bannedFile==false)) {
|
||||
echo '<script>fileType="text";</script>';
|
||||
$loadedFile = file_get_contents($file);
|
||||
echo '<textarea name="loadedFile" id="loadedFile">'.$loadedFile.'</textarea>';
|
||||
echo '<textarea name="loadedFile" id="loadedFile">'.str_replace("</textarea>","<ICEcoder:/:textarea>",$loadedFile).'</textarea>';
|
||||
} else {
|
||||
echo '<script>fileType="nothing";</script>';
|
||||
echo '<script>alert(\'Sorry, you need a higher admin level to view this file\');</script>';
|
||||
|
||||
Reference in New Issue
Block a user