summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 4ef734218..dfaf1895d 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -245,7 +245,7 @@
$url_host = parse_url($url, PHP_URL_HOST);
$ip_addr = gethostbyname($url_host);
- if (!$ip_addr || strpos($ip_addr, "127.0") === 0) {
+ if (!$ip_addr || strpos($ip_addr, "127.") === 0) {
$fetch_last_error = "URL hostname failed to resolve or resolved to loopback address ($ip_addr)";
return false;
}