diff options
author | friendica <info@friendica.com> | 2013-10-29 21:52:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-10-29 21:52:46 -0700 |
commit | ad31724fd1c3b0e497484115c803b00c248e4c6f (patch) | |
tree | 9c4915a3c0a78814c7dd5b77957c96a3d37ecd39 /mod/rpost.php | |
parent | ed8f14549f366b3f72f485a32df354876f82f76e (diff) | |
download | volse-hubzilla-ad31724fd1c3b0e497484115c803b00c248e4c6f.tar.gz volse-hubzilla-ad31724fd1c3b0e497484115c803b00c248e4c6f.tar.bz2 volse-hubzilla-ad31724fd1c3b0e497484115c803b00c248e4c6f.zip |
prevent loops
Diffstat (limited to 'mod/rpost.php')
-rw-r--r-- | mod/rpost.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/rpost.php b/mod/rpost.php index d7e4f963f..ddcd3c53f 100644 --- a/mod/rpost.php +++ b/mod/rpost.php @@ -36,7 +36,8 @@ function rpost_content(&$a) { // blocks them. $url = get_rpost_path($a->get_observer()); - if($url) { + // make sure we're not looping to our own hub + if(($url) && (! stristr($url, $a->get_hostname()))) { foreach($_REQUEST as $key => $arg) { $url .= '&' . $key . '=' . $arg; } |