mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
trim referuri
This commit is contained in:
parent
ef923b5f72
commit
5b0a4ea614
|
@ -271,10 +271,10 @@ if (isset($_COOKIE["mydms_session"])) {
|
|||
// Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results.
|
||||
|
||||
if (isset($_POST["referuri"]) && strlen($_POST["referuri"])>0) {
|
||||
$referuri = urldecode($_POST["referuri"]);
|
||||
$referuri = trim(urldecode($_POST["referuri"]));
|
||||
}
|
||||
else if (isset($_GET["referuri"]) && strlen($_GET["referuri"])>0) {
|
||||
$referuri = urldecode($_GET["referuri"]);
|
||||
$referuri = trim(urldecode($_GET["referuri"]));
|
||||
}
|
||||
|
||||
add_log_line();
|
||||
|
|
Loading…
Reference in New Issue
Block a user