]> git.mxchange.org Git - friendica.git/commitdiff
remove zrl from query string
authorfriendica <info@friendica.com>
Mon, 2 Apr 2012 07:45:45 +0000 (00:45 -0700)
committerfriendica <info@friendica.com>
Mon, 2 Apr 2012 07:45:45 +0000 (00:45 -0700)
include/text.php
index.php

index e1e04075000db3d1ab8ba3792c8f4d15815eb8d3..5456b5ad3e5a1248d5b6572a3a2bf114b8dfbc0d 100644 (file)
@@ -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'];
index a51e33e2603d33e6579c7a4b600be811c84f1f9b..e7227962f479436a31cfff2054dc79bdcb995920 100755 (executable)
--- 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);
 }
 
 /**