mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed the vulnerability. http://cxsecurity.com/issue/WLB-2014110100 Thanks William Costa
This commit is contained in:
parent
e41a4415ec
commit
e6eb72e49a
@ -375,15 +375,22 @@ config_check();
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($_GET["refr"]) {
|
if ($_GET["refr"]) {
|
||||||
|
$_get_refr = strip_tags($_GET["refr"]);
|
||||||
?>
|
?>
|
||||||
|
refr_time = parseInt("<?php echo $_get_refr; ?>");
|
||||||
|
if (isNaN(refr_time)) {
|
||||||
|
refr_time = 0;
|
||||||
|
}
|
||||||
|
|
||||||
t = new Date();
|
t = new Date();
|
||||||
t.setTime (t.getTime () + <?php echo $config["refr"] * 1000; ?>);
|
t.setTime (t.getTime () +
|
||||||
|
parseInt(<?php echo $config["refr"] * 1000; ?>));
|
||||||
$("#refrcounter").countdown ({until: t,
|
$("#refrcounter").countdown ({until: t,
|
||||||
layout: '%M%nn%M:%S%nn%S',
|
layout: '%M%nn%M:%S%nn%S',
|
||||||
labels: ['', '', '', '', '', '', ''],
|
labels: ['', '', '', '', '', '', ''],
|
||||||
onExpiry: function () {
|
onExpiry: function () {
|
||||||
href = $("a.autorefresh").attr ("href");
|
href = $("a.autorefresh").attr ("href");
|
||||||
href = href + <?php echo $_GET["refr"]; ?>;
|
href = href + refr_time;
|
||||||
$(document).attr ("location", href);
|
$(document).attr ("location", href);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user