1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-13 09:01:59 +02:00

Fixing http_build_query causing return of &amp

Fixing http_build_query function causing return of &amp 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:
Serios 2016-02-26 00:48:17 +02:00
parent 12a2084cbb
commit 48ace09e61

View File

@ -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='')
}
?>
?>