Skip to content

Commit 7c4c729

Browse files
authored
localhost loopback
1 parent 99faf31 commit 7c4c729

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/IndieWeb/get_rel_webmention.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function is_loopback($href) {
1313
// in: $href URL
1414
// out: boolean whether host of URL is a loopback address
1515
$host = hostname_of_uri($href);
16+
if ($host == 'localhost') { return true; }
1617
$host = explode('.', $host);
1718
return ($host.length == 4 &&
1819
$host[0] == 127 &&

0 commit comments

Comments
 (0)