aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-27 16:27:28 -0700
committerMario Vavti <mario@mariovavti.com>2018-04-05 09:34:09 +0200
commit6208ee3809ba79ab0eeafb15696c4c3cae7d07d6 (patch)
treeffc1979e9853b1d5f3479a73bf51f15c70abe234 /Zotlabs
parent17e341d24581af3cc42baae66a0d83162c2d9649 (diff)
downloadvolse-hubzilla-6208ee3809ba79ab0eeafb15696c4c3cae7d07d6.tar.gz
volse-hubzilla-6208ee3809ba79ab0eeafb15696c4c3cae7d07d6.tar.bz2
volse-hubzilla-6208ee3809ba79ab0eeafb15696c4c3cae7d07d6.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 5d2f0d7e8..42c360fd4 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);