prevent loops

This commit is contained in:
friendica 2013-10-29 21:52:46 -07:00
parent ed8f14549f
commit ad31724fd1

View File

@ -36,7 +36,8 @@ function rpost_content(&$a) {
// blocks them. // blocks them.
$url = get_rpost_path($a->get_observer()); $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) { foreach($_REQUEST as $key => $arg) {
$url .= '&' . $key . '=' . $arg; $url .= '&' . $key . '=' . $arg;
} }