X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=src%2FApp.php;h=445101309384a2f651b46fd69f78b507835538a4;hb=4894e89f036be1f8a82523ac69d56ae36e7685df;hp=a9fc7173c0144f2e6b2ddaabb1dac8af3ed283bc;hpb=5276c28a78e188eb4ec8dcbf87a4dd1ac193c8d7;p=friendica.git diff --git a/src/App.php b/src/App.php index a9fc7173c0..4451013093 100644 --- a/src/App.php +++ b/src/App.php @@ -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, @@ -816,12 +816,12 @@ class App public function removeBaseURL($origURL) { // Remove the hostname from the url if it is an internal link - $nurl = normalise_link($origURL); - $base = normalise_link($this->getBaseURL()); + $nurl = Util\Strings::normaliseLink($origURL); + $base = Util\Strings::normaliseLink($this->getBaseURL()); $url = str_replace($base . '/', '', $nurl); // if it is an external link return the orignal value - if ($url == normalise_link($origURL)) { + if ($url == Util\Strings::normaliseLink($origURL)) { return $origURL; } else { return $url;