aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2013-02-21 19:10:38 -0300
committermarcelloc <marcellocoutinho@gmail.com>2013-02-21 19:10:38 -0300
commiteb8aecee41aa4847a609262f02985271eac6e8c6 (patch)
tree17e0b60fd16d263f8c2eeb29719968ee7b4825c0 /config
parentbb35c3a6486b3cd3712d2ca0b64a9910aa222015 (diff)
downloadpfsense-packages-eb8aecee41aa4847a609262f02985271eac6e8c6.tar.gz
pfsense-packages-eb8aecee41aa4847a609262f02985271eac6e8c6.tar.bz2
pfsense-packages-eb8aecee41aa4847a609262f02985271eac6e8c6.zip
imspector-dev - include csrf_get_tokens function call on services_imspector_logs2.php
Diffstat (limited to 'config')
-rw-r--r--config/imspector-dev/services_imspector_logs2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/imspector-dev/services_imspector_logs2.php b/config/imspector-dev/services_imspector_logs2.php
index 368edeec..30f63058 100644
--- a/config/imspector-dev/services_imspector_logs2.php
+++ b/config/imspector-dev/services_imspector_logs2.php
@@ -67,7 +67,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) {
@@ -188,6 +187,7 @@ include("head.inc");
</table>
<?php
+$csrf_token= csrf_get_tokens();
$zz = <<<EOD
<script type="text/javascript">
var section = 'none';
@@ -213,7 +213,7 @@ function xmlhttpPost()
}
document.getElementById('im_status').style.display = "inline";
- self.xmlHttpReq.send("mode=render&section=" + section);
+ self.xmlHttpReq.send("mode=render&section=" + section + "&__csrf_magic={$csrf_token}");
}
function updatepage(str)