aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-29 21:52:46 -0700
committerfriendica <info@friendica.com>2013-10-29 21:52:46 -0700
commitad31724fd1c3b0e497484115c803b00c248e4c6f (patch)
tree9c4915a3c0a78814c7dd5b77957c96a3d37ecd39
parented8f14549f366b3f72f485a32df354876f82f76e (diff)
downloadvolse-hubzilla-ad31724fd1c3b0e497484115c803b00c248e4c6f.tar.gz
volse-hubzilla-ad31724fd1c3b0e497484115c803b00c248e4c6f.tar.bz2
volse-hubzilla-ad31724fd1c3b0e497484115c803b00c248e4c6f.zip
prevent loops
-rw-r--r--mod/rpost.php3
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;
}