Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix minor SQL injection
  • Loading branch information
Gargaj committed Jun 22, 2020
1 parent 974872e commit 11d6159
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion export/lastbbsposts.rss.php
Expand Up @@ -3,7 +3,7 @@
require_once( POUET_ROOT_LOCAL . "/include_pouet_index/box-index-bbs-latest.php");
require_once( POUET_ROOT_LOCAL . "/include_pouet/pouet-rss.php");

$limit = $_GET["howmany"] ? $_GET["howmany"] : 10;
$limit = $_GET["howmany"] ? (int)$_GET["howmany"] : 10;
$limit = min($limit,25);
$limit = max($limit,5);

Expand Down
2 changes: 1 addition & 1 deletion export/lastprodcomments.rss.php
Expand Up @@ -2,7 +2,7 @@
require_once("../bootstrap.inc.php");
require_once( POUET_ROOT_LOCAL . "/include_pouet/pouet-rss.php");

$limit = $_GET["howmany"] ? $_GET["howmany"] : 10;
$limit = $_GET["howmany"] ? (int)$_GET["howmany"] : 10;
$limit = min($limit,25);
$limit = max($limit,5);

Expand Down
2 changes: 1 addition & 1 deletion export/lastprodsadded.rss.php
Expand Up @@ -3,7 +3,7 @@
require_once( POUET_ROOT_LOCAL . "/include_pouet_index/box-index-latestadded.php");
require_once( POUET_ROOT_LOCAL . "/include_pouet/pouet-rss.php");

$limit = $_GET["howmany"] ? $_GET["howmany"] : 10;
$limit = $_GET["howmany"] ? (int)$_GET["howmany"] : 10;
$limit = min($limit,25);
$limit = max($limit,5);

Expand Down
2 changes: 1 addition & 1 deletion export/lastprodsreleased.rss.php
Expand Up @@ -3,7 +3,7 @@
require_once( POUET_ROOT_LOCAL . "/include_pouet_index/box-index-latestreleased.php");
require_once( POUET_ROOT_LOCAL . "/include_pouet/pouet-rss.php");

$limit = $_GET["howmany"] ? $_GET["howmany"] : 10;
$limit = $_GET["howmany"] ? (int)$_GET["howmany"] : 10;
$limit = min($limit,25);
$limit = max($limit,5);

Expand Down

0 comments on commit 11d6159

Please sign in to comment.