We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99faf31 commit 7c4c729Copy full SHA for 7c4c729
src/IndieWeb/get_rel_webmention.php
@@ -13,6 +13,7 @@ function is_loopback($href) {
13
// in: $href URL
14
// out: boolean whether host of URL is a loopback address
15
$host = hostname_of_uri($href);
16
+ if ($host == 'localhost') { return true; }
17
$host = explode('.', $host);
18
return ($host.length == 4 &&
19
$host[0] == 127 &&
0 commit comments