trim referuri

This commit is contained in:
Uwe Steinmann 2014-03-21 08:11:12 +01:00
parent ef923b5f72
commit 5b0a4ea614

View File

@ -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();