aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-08 19:20:50 -0800
committerfriendica <info@friendica.com>2015-01-08 19:20:50 -0800
commit1b535ff8a5762604ae96d0ad00488738090c083b (patch)
treea4d510b749cac739906cbbec3d46f59eb522ba03 /include
parentaf943f45692a37c570ca4a4ef450f897b3065a90 (diff)
downloadvolse-hubzilla-1b535ff8a5762604ae96d0ad00488738090c083b.tar.gz
volse-hubzilla-1b535ff8a5762604ae96d0ad00488738090c083b.tar.bz2
volse-hubzilla-1b535ff8a5762604ae96d0ad00488738090c083b.zip
clean up some url anomalies in dir_sort_links after security fix
Diffstat (limited to 'include')
-rw-r--r--include/dir_fns.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index 0cbe2daec..371ee0fbc 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -55,16 +55,18 @@ function dir_sort_links() {
// Probably there's an easier way to do this
$current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : 'normal');
- $url = 'directory?';
+ $url = 'directory?f=';
$tmp = array_merge($_GET,$_POST);
unset($tmp['order']);
unset($tmp['q']);
+ unset($tmp['f']);
$sorturl = $url . http_build_query($tmp);
$tmp = array_merge($_GET,$_POST);
unset($tmp['pubforums']);
unset($tmp['q']);
+ unset($tmp['f']);
$forumsurl = $url . http_build_query($tmp);
$o = replace_macros(get_markup_template('dir_sort_links.tpl'), array(