We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc26a87 commit a46c652Copy full SHA for a46c652
include/prepend.inc
@@ -26,7 +26,7 @@ header("Permissions-Policy: interest-cohort=()");
26
}
27
28
$host = parse_url($_SERVER["HTTP_ORIGIN"]);
29
- if (strncmp(strrev($host["host"]), strrev("php.net"), strlen("php.net")) != 0) {
+ if (!preg_match('/^(.+\.)?php\.net$/', $host["host"])) {
30
if ($host["host"] != $_SERVER["SERVER_NAME"]) {
31
exit(10);
32
0 commit comments