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.
This commit is contained in:
parent
f2d5f23d58
commit
09b09dedbc
@ -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.
|
// 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
|
// 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() {
|
function extra_query_args() {
|
||||||
$s = '';
|
$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;
|
return $s;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user