mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
Fixed a very potential cross-site scripting issue that would have for sure ended up on security sites.
git-svn-id: file:///svn/phpbb/trunk@3573 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -31,8 +31,8 @@ $start = (isset($_GET['start'])) ? max(intval($_GET['start']), 0) : 0;
|
|||||||
$mark_read = (!empty($_GET['mark'])) ? $_GET['mark'] : '';
|
$mark_read = (!empty($_GET['mark'])) ? $_GET['mark'] : '';
|
||||||
|
|
||||||
$sort_days = (!empty($_REQUEST['st'])) ? max(intval($_REQUEST['st']), 0) : 0;
|
$sort_days = (!empty($_REQUEST['st'])) ? max(intval($_REQUEST['st']), 0) : 0;
|
||||||
$sort_key = (!empty($_REQUEST['sk'])) ? $_REQUEST['sk'] : 't';
|
$sort_key = (!empty($_REQUEST['sk'])) ? htmlspecialchars($_REQUEST['sk']) : 't';
|
||||||
$sort_dir = (!empty($_REQUEST['sd'])) ? $_REQUEST['sd'] : 'd';
|
$sort_dir = (!empty($_REQUEST['sd'])) ? htmlspecialchars($_REQUEST['sd']) : 'd';
|
||||||
|
|
||||||
|
|
||||||
// Start session
|
// Start session
|
||||||
|
@@ -37,8 +37,8 @@ $start = (isset($_GET['start'])) ? max(intval($_GET['start']), 0) : 0;
|
|||||||
// if someone wishes to screw their view up by entering unknown data
|
// if someone wishes to screw their view up by entering unknown data
|
||||||
// good luck to them :D
|
// good luck to them :D
|
||||||
$sort_days = (!empty($_REQUEST['st'])) ? max(intval($_REQUEST['st']), 0) : 0;
|
$sort_days = (!empty($_REQUEST['st'])) ? max(intval($_REQUEST['st']), 0) : 0;
|
||||||
$sort_key = (!empty($_REQUEST['sk'])) ? $_REQUEST['sk'] : 't';
|
$sort_key = (!empty($_REQUEST['sk'])) ? htmlspecialchars($_REQUEST['sk']) : 't';
|
||||||
$sort_dir = (!empty($_REQUEST['sd'])) ? $_REQUEST['sd'] : 'a';
|
$sort_dir = (!empty($_REQUEST['sd'])) ? htmlspecialchars($_REQUEST['sd']) : 'a';
|
||||||
|
|
||||||
|
|
||||||
// Do we have a topic or post id?
|
// Do we have a topic or post id?
|
||||||
|
Reference in New Issue
Block a user