don't include the q and PHPSESSID request variables in a redirected rpost

This commit is contained in:
zotlabs 2018-03-27 16:27:28 -07:00 committed by Mario Vavti
parent 17e341d245
commit 6208ee3809

View File

@ -45,7 +45,9 @@ class Rpost extends \Zotlabs\Web\Controller {
$url = get_rpost_path(\App::get_observer());
// make sure we're not looping to our own hub
if(($url) && (! stristr($url, \App::get_hostname()))) {
foreach($_REQUEST as $key => $arg) {
foreach($_GET as $key => $arg) {
if($key === 'q')
continue;
$url .= '&' . $key . '=' . $arg;
}
goaway($url);