]> git.mxchange.org Git - friendica.git/blobdiff - include/identity.php
Merge branch 'develop' into task/3954-move-auth-to-src
[friendica.git] / include / identity.php
index 0ad0e646dc7d34ceb35d1413df9144e404abfe90..d78935778ae800cf2d4cb2d3ec37f3a3f215803f 100644 (file)
@@ -920,11 +920,12 @@ function get_my_url()
 
 function zrl_init(App $a)
 {
-       $tmp_str = get_my_url();
-       if (validate_url($tmp_str)) {
+       $my_url = get_my_url();
+       $my_url = validate_url($my_url);
+       if ($my_url) {
                // Is it a DDoS attempt?
                // The check fetches the cached value from gprobe to reduce the load for this system
-               $urlparts = parse_url($tmp_str);
+               $urlparts = parse_url($my_url);
 
                $result = Cache::get('gprobe:' . $urlparts['host']);
                if ((!is_null($result)) && (in_array($result['network'], array(NETWORK_FEED, NETWORK_PHANTOM)))) {
@@ -932,8 +933,8 @@ function zrl_init(App $a)
                        return;
                }
 
-               Worker::add(PRIORITY_LOW, 'GProbe', $tmp_str);
-               $arr = array('zrl' => $tmp_str, 'url' => $a->cmd);
+               Worker::add(PRIORITY_LOW, 'GProbe', $my_url);
+               $arr = array('zrl' => $my_url, 'url' => $a->cmd);
                call_hooks('zrl_init', $arr);
        }
 }