aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-27 16:27:28 -0700
committerzotlabs <mike@macgirvin.com>2018-03-27 16:27:28 -0700
commit5ea11d1222c24330dee496dade4bd08d362e95bd (patch)
treeae189f3c7090eefc44b3070cb93e4f52e6db9820 /Zotlabs
parent35b6c2baad74c28a993e6cd1008bc0d66e7361ae (diff)
downloadvolse-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
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Rpost.php4
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);