diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2013-02-21 18:57:06 -0300 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2013-02-21 18:57:06 -0300 |
commit | bb35c3a6486b3cd3712d2ca0b64a9910aa222015 (patch) | |
tree | 151fe84b5025c8bd71e87ed09ff473be3b45fa07 /config | |
parent | 449a8c7d92692312df9ff5d54813231af008e926 (diff) | |
download | pfsense-packages-bb35c3a6486b3cd3712d2ca0b64a9910aa222015.tar.gz pfsense-packages-bb35c3a6486b3cd3712d2ca0b64a9910aa222015.tar.bz2 pfsense-packages-bb35c3a6486b3cd3712d2ca0b64a9910aa222015.zip |
imspector-dev - include csrf_get_tokens function call on services_imspector_logs.php
Diffstat (limited to 'config')
-rw-r--r-- | config/imspector-dev/services_imspector_logs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/imspector-dev/services_imspector_logs.php b/config/imspector-dev/services_imspector_logs.php index e44ef35f..adb3fa66 100644 --- a/config/imspector-dev/services_imspector_logs.php +++ b/config/imspector-dev/services_imspector_logs.php @@ -66,7 +66,6 @@ function convert_dir_list ($topdir) { return; $imspector_config = $config['installedpackages']['imspector']['config'][0]; $limit=(preg_match("/\d+/",$imspector_config['reportlimit'])?$imspector_config['reportlimit']:"50"); - file_put_contents("/tmp/teste.txt",$limit." teste",LOCK_EX); $count=0; if ($dh = opendir($topdir)) { while (($file = readdir($dh)) !== false) { @@ -180,6 +179,7 @@ include("head.inc"); </table> <?php +$csrf_token= csrf_get_tokens(); $zz = <<<EOD <script type="text/javascript"> var section = 'none'; @@ -205,7 +205,7 @@ function xmlhttpPost() } document.getElementById('im_status').style.display = "inline"; - self.xmlHttpReq.send("mode=render§ion=" + section); + self.xmlHttpReq.send("mode=render§ion=" + section + "&__csrf_magic={$csrf_token}"); } function updatepage(str) |