mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
fixes #3171 moved query param p to the options/query parameter of url()
Implemented a fiy for accidentally double ampersand in the query part of the url
This commit is contained in:
@@ -160,11 +160,13 @@ class e_url
|
||||
if($newLocation != $this->_request)
|
||||
{
|
||||
$redirect = e107::getParser()->replaceConstants($newLocation);
|
||||
list($file,$query) = explode("?",$redirect,2);
|
||||
list($file,$query) = explode("?", $redirect,2);
|
||||
|
||||
$get = array();
|
||||
if(!empty($query))
|
||||
{
|
||||
// issue #3171 fix double ampersand in case of wrong query definition
|
||||
$query = str_replace('&&', '&', $query);
|
||||
parse_str($query,$get);
|
||||
}
|
||||
|
||||
@@ -179,7 +181,7 @@ class e_url
|
||||
if(file_exists($file))
|
||||
{
|
||||
define('e_CURRENT_PLUGIN', $plug);
|
||||
define('e_QUERY', $query); // do not add to e107_class.php
|
||||
define('e_QUERY', str_replace('&&', '&', $query)); // do not add to e107_class.php
|
||||
define('e_URL_LEGACY', $redirect);
|
||||
|
||||
$this->_include= $file;
|
||||
|
Reference in New Issue
Block a user