From 942adadec63805e9f6dbed63d7f8a4b69a597e91 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 13 Feb 2013 02:33:13 -0800 Subject: fix auto rmagic when visiting with zid --- boot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index d26d6a5f1..363fa2e4f 100644 --- a/boot.php +++ b/boot.php @@ -1973,9 +1973,9 @@ function get_my_address() { } function zid_init(&$a) { - $tmp_str = get_my_url(); - if(validate_url($tmp_str)) { - proc_run('php','include/gprobe.php',bin2hex($tmp_str)); + $tmp_str = get_my_address(); + if($tmp_str && strpos($tmp_str,'@')) { + proc_run('php','include/gprobe.php',$tmp_str); $arr = array('zid' => $tmp_str, 'url' => $a->cmd); call_hooks('zid_init',$arr); if((! local_user()) && (! remote_user())) { -- cgit v1.2.3