Browse Source

remove zrl from query string

pull/201/head
friendica 9 years ago
parent
commit
62e528ba43
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      include/text.php
  2. +1
    -0
      index.php

+ 3
- 0
include/text.php View 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'];


+ 1
- 0
index.php View File

@ -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);
}
/**


Loading…
Cancel
Save