From 1b535ff8a5762604ae96d0ad00488738090c083b Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 8 Jan 2015 19:20:50 -0800 Subject: clean up some url anomalies in dir_sort_links after security fix --- include/dir_fns.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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( -- cgit v1.2.3