From 7a8363c328d69b53a0c949bc2d8a047d2536d911 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 26 Aug 2013 17:06:19 -0700 Subject: more cleanup from the mess yesterday - you might have a look for xchan_addr and hubloc_addr with slashes in them and fix them - especially getting rid of ip addresses and the /channel/xyz in the addr fields --- include/zot.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index be5b0d9c0..b74892b19 100644 --- a/include/zot.php +++ b/include/zot.php @@ -606,6 +606,9 @@ function import_xchan($arr) { continue; } + if(strpos($location['address'],'/') !== false) + $location['address'] = substr($location['address'],0,strpos($location['address'],'/')); + // new hub claiming to be primary. Make it so. if(intval($location['primary'])) { -- cgit v1.2.3