From 115169b16bfaac4f64018534dc7e6493289f6302 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 21 Aug 2014 14:22:44 +0100 Subject: [PATCH] alert & console.log the action and $file Commented out, but useful for people to uncomment to see what's happening if path issues etc --- lib/file-control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/file-control.php b/lib/file-control.php index 5bff096..e6b9d62 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -23,6 +23,8 @@ if (strpos($file,$docRoot)===false && $_GET['action']!="getRemoteFile") {$file=s $fileLoc = substr(str_replace($docRoot,"",$file),0,strrpos(str_replace($docRoot,"",$file),"/")); $fileName = basename($file); +// echo ";alert('".xssClean($_GET['action'],"html")." : ".$file."');console.log('".xssClean($_GET['action'],"html")." : ".$file."');"; + // If we're due to open a file... if ($_GET['action']=="load") { echo 'action="load";';