From: friendica Date: Mon, 2 Apr 2012 07:45:45 +0000 (-0700) Subject: remove zrl from query string X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=62e528ba43bedbd33eb81447775bd743f0c1acf8;p=friendica.git remove zrl from query string --- diff --git a/include/text.php b/include/text.php index e1e0407500..5456b5ad3e 100644 --- a/include/text.php +++ b/include/text.php @@ -225,6 +225,9 @@ if(! function_exists('paginate')) { function paginate(&$a) { $o = ''; $stripped = preg_replace('/(&page=[0-9]*)/','',$a->query_string); + +// $stripped = preg_replace('/&zrl=(.*?)([\?&]|$)/ism','',$stripped); + $stripped = str_replace('q=','',$stripped); $stripped = trim($stripped,'/'); $pagenum = $a->pager['page']; diff --git a/index.php b/index.php index a51e33e260..e7227962f4 100755 --- a/index.php +++ b/index.php @@ -95,6 +95,7 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) { if(x($_GET,'zrl')) { $_SESSION['my_url'] = $_GET['zrl']; + $a->query_string = preg_replace('/[\?&]zrl=(.*?)([\?&]|$)/is','',$a->query_string); } /**