fix check for referer starting with /op

didn't work, because referer was urlencode before the check, which
turned the '/' into '%xx'
This commit is contained in:
Uwe Steinmann 2014-03-21 08:07:18 +01:00
parent 646128cbd8
commit 21d5c868a3

View File

@ -12,9 +12,11 @@
* @version Release: @package_version@
*/
$refer=urlencode($_SERVER["REQUEST_URI"]);
$refer = $_SERVER["REQUEST_URI"];
if (!strncmp("/op", $refer, 3)) {
$refer="";
} else {
$refer = urlencode($refer);
}
if (!isset($_COOKIE["mydms_session"])) {
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);