mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 07:44:49 +02:00
Null check for optional query string in e107::url()
This commit is contained in:
@@ -3559,7 +3559,7 @@ class e107
|
||||
|
||||
// Avoid duplicate query keys. eg. URL has ?id=x and $options['query']['id'] exists.
|
||||
// @see forum/e_url.php - topic/redirect and forum/view_shortcodes.php sc_post_url()
|
||||
list($legacyUrl, $tmp) = explode("?", $legacyUrl);
|
||||
list($legacyUrl, $tmp) = array_pad(explode("?", $legacyUrl), 2, null);
|
||||
|
||||
if (!empty($tmp))
|
||||
{
|
||||
|
Reference in New Issue
Block a user