mirror of
https://github.com/e107inc/e107.git
synced 2025-04-13 09:01:59 +02:00
Fixing http_build_query causing return of &
Fixing http_build_query function causing return of & instead of & on some servers when using {MENU: xxxxx} with parameters, thus breaking parameters passing to the menu. Eg. {MENU: path=news/latestnews&test1=true&test2=false&test3=44} Will return call the menu with test1=true&test2=false&test3=44 instead of est1=true&test2=false&test3=44 causing only the first parameter key passed, to be valid
This commit is contained in:
parent
12a2084cbb
commit
48ace09e61
@ -16,7 +16,7 @@ function menu_shortcode($parm, $mode='')
|
||||
}
|
||||
|
||||
unset($parm['path']);
|
||||
return e107::getMenu()->renderMenu($plugin,$menu."_menu", http_build_query($parm,'&'));
|
||||
return e107::getMenu()->renderMenu($plugin,$menu."_menu", http_build_query($parm, '', '&'));
|
||||
|
||||
}
|
||||
else
|
||||
@ -43,4 +43,4 @@ function menu_shortcode($parm, $mode='')
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user