Skip to content

Commit

Permalink
fix reflected XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Nov 7, 2022
1 parent 1b35149 commit 08be831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/autoreport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function execute($options=[]) {
$res = $DB->query($this->sql);
$nbtot = ($res ? $DB->numrows($res): 0);
if ($limit) {
$start = (isset ($_GET["start"]) ? $_GET["start"] : 0);
$start = (isset ($_GET["start"]) ? intval($_GET["start"]) : 0);
if ($start >= $nbtot) {
$start = 0;
}
Expand Down

0 comments on commit 08be831

Please sign in to comment.