xssClean unsanitised user input

This commit is contained in:
Matt Pass
2016-03-08 15:41:58 +00:00
parent 0bcf7a1d72
commit e5dcd02b62

View File

@@ -373,7 +373,7 @@ if (!isset($ftpSite) && $_SESSION['githubDiff']) {
}
?>
<script>
targetElem = top.ICEcoder.filesFrame.contentWindow.document.getElementById('<?php echo $_GET['location'];?>');
targetElem = top.ICEcoder.filesFrame.contentWindow.document.getElementById('<?php echo xssClean($_GET['location'],"html");?>');
newUL = document.createElement("ul");
newUL.style = "display: block";
locNest = targetElem.parentNode.parentNode;