mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
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:
parent
646128cbd8
commit
21d5c868a3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user