aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/zot.php3
1 files changed, 3 insertions, 0 deletions
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'])) {