From fffd35174ff1280f11f988afefacc0df3acf83a7 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 15 Jun 2017 23:10:25 +0200 Subject: [PATCH] fixes #710, avoid using get_gallery_home_url() because it may be different from get_absolute_root_url() if you have a $conf['gallery_url'] --- identification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identification.php b/identification.php index 2676b6a1a..6f236a93b 100644 --- a/identification.php +++ b/identification.php @@ -47,7 +47,7 @@ if (isset($_POST['redirect'])) { $_POST['redirect_decoded'] = urldecode($_POST['redirect']); } -check_input_parameter('redirect_decoded', $_POST, false, '{^'.preg_quote(get_gallery_home_url()).'}'); +check_input_parameter('redirect_decoded', $_POST, false, '{^'.preg_quote(cookie_path()).'}'); $redirect_to = ''; if ( !empty($_GET['redirect']) )