From ad31724fd1c3b0e497484115c803b00c248e4c6f Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 29 Oct 2013 21:52:46 -0700 Subject: prevent loops --- mod/rpost.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/rpost.php') 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; } -- cgit v1.2.3