Skip to content

Commit 1e984c9

Browse files
committed
Corrected another exit code
1 parent ed24e54 commit 1e984c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// Check that the URL looks like an absolute URL
1515
if( ! parse_url($url, PHP_URL_SCHEME))
16-
failure(403, "Not an absolute URL: $url");
16+
failure(400, "Not an absolute URL: $url");
1717

1818
// Check referer hostname
1919
if( ! parse_url($headers['Referer'] ?? null, PHP_URL_HOST) == $_SERVER['HTTP_HOST'])

0 commit comments

Comments
 (0)