Browse Source

Add URL encoding to toggle_mobile parameter

pull/6107/head
Hypolite Petovan 2 years ago
parent
commit
09c94dba86
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/App.php

+ 2
- 2
src/App.php 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,


Loading…
Cancel
Save