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
parent 35b6c2baad
commit 5ea11d1222

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);