Skip to content

Commit 880a180

Browse files
committedJan 22, 2024
Fixed regex matching on spf include domain
1 parent 4f860b5 commit 880a180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎classes/dns_util.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function include_present(string $include) {
106106

107107
// Allow a * wildcard match.
108108
$escaped = str_replace('\*', '\S*', $escaped);
109-
$regex = "/include:($escaped)/U";
109+
$regex = "/include:($escaped)\s/U";
110110
if (preg_match($regex, $txt, $matches)) {
111111
return $matches[1];
112112
}

0 commit comments

Comments
 (0)