mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 20:12:44 +02:00
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']
This commit is contained in:
@@ -47,7 +47,7 @@ if (isset($_POST['redirect']))
|
|||||||
{
|
{
|
||||||
$_POST['redirect_decoded'] = urldecode($_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 = '';
|
$redirect_to = '';
|
||||||
if ( !empty($_GET['redirect']) )
|
if ( !empty($_GET['redirect']) )
|
||||||
|
|||||||
Reference in New Issue
Block a user