aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-08 19:13:13 -0800
committerfriendica <info@friendica.com>2015-01-08 19:13:13 -0800
commitaf943f45692a37c570ca4a4ef450f897b3065a90 (patch)
treeb66df525c7af8a02637b728d0ad9cfda26c477aa /include
parent1e4e7ce2d3c28331d408ad0e40ab0e3bb912e7f1 (diff)
downloadvolse-hubzilla-af943f45692a37c570ca4a4ef450f897b3065a90.tar.gz
volse-hubzilla-af943f45692a37c570ca4a4ef450f897b3065a90.tar.bz2
volse-hubzilla-af943f45692a37c570ca4a4ef450f897b3065a90.zip
double q argument could also cause issues
Diffstat (limited to 'include')
-rw-r--r--include/dir_fns.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index 98b906e84..0cbe2daec 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -56,12 +56,15 @@ function dir_sort_links() {
$current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : 'normal');
$url = 'directory?';
+
$tmp = array_merge($_GET,$_POST);
unset($tmp['order']);
+ unset($tmp['q']);
$sorturl = $url . http_build_query($tmp);
- $tmp = array_merge($_GET,$_POST);
+ $tmp = array_merge($_GET,$_POST);
unset($tmp['pubforums']);
+ unset($tmp['q']);
$forumsurl = $url . http_build_query($tmp);
$o = replace_macros(get_markup_template('dir_sort_links.tpl'), array(