Merge pull request #6107 from MrPetovan/bug/5996-fix-toggle-mobile-call

Add URL encoding to toggle_mobile parameter
This commit is contained in:
Michael Vogel 2018-11-10 17:27:04 +01:00 committed by GitHub
commit 67f9458ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -787,9 +787,9 @@ class App
*/
if ($this->is_mobile || $this->is_tablet) {
if (isset($_SESSION['show-mobile']) && !$_SESSION['show-mobile']) {
$link = 'toggle_mobile?address=' . curPageURL();
$link = 'toggle_mobile?address=' . urlencode(curPageURL());
} else {
$link = 'toggle_mobile?off=1&address=' . curPageURL();
$link = 'toggle_mobile?off=1&address=' . urlencode(curPageURL());
}
$this->page['footer'] .= Core\Renderer::replaceMacros(Core\Renderer::getMarkupTemplate("toggle_mobile_footer.tpl"), [
'$toggle_link' => $link,