mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +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:
@@ -16,7 +16,7 @@ function menu_shortcode($parm, $mode='')
|
|||||||
}
|
}
|
||||||
|
|
||||||
unset($parm['path']);
|
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
|
else
|
||||||
@@ -43,4 +43,4 @@ function menu_shortcode($parm, $mode='')
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user