]> git.mxchange.org Git - friendica.git/commitdiff
Add URL encoding to toggle_mobile parameter
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 10 Nov 2018 13:55:48 +0000 (08:55 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 10 Nov 2018 13:55:48 +0000 (08:55 -0500)
src/App.php

index 12f302f06ee0b68cae010fcfb2277f4aa1bf1c16..445101309384a2f651b46fd69f78b507835538a4 100644 (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,