diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-27 16:27:28 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-27 16:27:28 -0700 |
commit | 5ea11d1222c24330dee496dade4bd08d362e95bd (patch) | |
tree | ae189f3c7090eefc44b3070cb93e4f52e6db9820 | |
parent | 35b6c2baad74c28a993e6cd1008bc0d66e7361ae (diff) | |
download | volse-hubzilla-5ea11d1222c24330dee496dade4bd08d362e95bd.tar.gz volse-hubzilla-5ea11d1222c24330dee496dade4bd08d362e95bd.tar.bz2 volse-hubzilla-5ea11d1222c24330dee496dade4bd08d362e95bd.zip |
don't include the q and PHPSESSID request variables in a redirected rpost
-rw-r--r-- | Zotlabs/Module/Rpost.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Rpost.php b/Zotlabs/Module/Rpost.php index e6ea52845..f0c4a06b9 100644 --- a/Zotlabs/Module/Rpost.php +++ b/Zotlabs/Module/Rpost.php @@ -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); |