aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-11 16:06:16 -0800
committerfriendica <info@friendica.com>2014-11-11 16:06:16 -0800
commit09b09dedbc3157e1859f4a777aeab54fadabfb43 (patch)
tree6291b991f94b6d5fc62f5056d7d48fffccc69432 /include/text.php
parentf2d5f23d584944e4c553fb296b8f649b9be2f0c2 (diff)
downloadvolse-hubzilla-09b09dedbc3157e1859f4a777aeab54fadabfb43.tar.gz
volse-hubzilla-09b09dedbc3157e1859f4a777aeab54fadabfb43.tar.bz2
volse-hubzilla-09b09dedbc3157e1859f4a777aeab54fadabfb43.zip
Most directory searches are POST. get_query_args() only handles GET so that had to be fixed or page 2 of directory search results wouldn't match the search.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index fca23ca22..4aa412355 100644
--- a/include/text.php
+++ b/include/text.php
@@ -2046,7 +2046,7 @@ function normalise_openid($s) {
// used in ajax endless scroll request to find out all the args that the master page was viewing.
// This was using $_REQUEST, but $_REQUEST also contains all your cookies. So we're restricting it
-// to $_GET. If this is used in a post handler, that decision may need to be considered.
+// to $_GET and $_POST.
function extra_query_args() {
$s = '';
@@ -2058,5 +2058,13 @@ function extra_query_args() {
}
}
}
+ if(count($_POST)) {
+ foreach($_POST as $k => $v) {
+ // these are request vars we don't want to duplicate
+ if(! in_array($k, array('q','f','zid','page','PHPSESSID'))) {
+ $s .= '&' . $k . '=' . $v;
+ }
+ }
+ }
return $s;
}