don't include the q and PHPSESSID request variables in a redirected rpost
This commit is contained in:
parent
35b6c2baad
commit
5ea11d1222
@ -45,7 +45,9 @@ class Rpost extends \Zotlabs\Web\Controller {
|
|||||||
$url = get_rpost_path(\App::get_observer());
|
$url = get_rpost_path(\App::get_observer());
|
||||||
// make sure we're not looping to our own hub
|
// make sure we're not looping to our own hub
|
||||||
if(($url) && (! stristr($url, \App::get_hostname()))) {
|
if(($url) && (! stristr($url, \App::get_hostname()))) {
|
||||||
foreach($_REQUEST as $key => $arg) {
|
foreach($_GET as $key => $arg) {
|
||||||
|
if($key === 'q')
|
||||||
|
continue;
|
||||||
$url .= '&' . $key . '=' . $arg;
|
$url .= '&' . $key . '=' . $arg;
|
||||||
}
|
}
|
||||||
goaway($url);
|
goaway($url);
|
||||||
|
Reference in New Issue
Block a user