From aa33a79e1349e37a042137ef6cc0667a2eea2c6c Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Thu, 30 May 2019 13:38:00 +0200 Subject: [PATCH] normal comparison --- mod/redir.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/redir.php b/mod/redir.php index 0e93a63fc2..233ec9b007 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -72,8 +72,8 @@ function redir_init(App $a) { { foreach ($_SESSION['remote'] as $v) { if (!empty($v['uid']) && !empty($v['cid']) && - $v['uid'] === Session::get('visitor_visiting') && - $v['cid'] === Session::get('visitor_id')) { + $v['uid'] == Session::get('visitor_visiting') && + $v['cid'] == Session::get('visitor_id')) { // Remote user is already authenticated. $target_url = defaults($url, $contact_url); Logger::log($contact['name'] . " is already authenticated. Redirecting to " . $target_url, Logger::DEBUG); -- 2.39.5