Skip to content

Commit 15f9c63

Browse files
author
Thom
committed
Quote subdomains properly for regex
1 parent 764ce12 commit 15f9c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/letsencrypt.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function request_certificates($data, $server_type = 'apache') {
437437
$temp_domain_parts = preg_split("/[.]/", $temp_domain);
438438
foreach ($temp_domain_parts as $temp_domain_part) {
439439
if (isset($temp_domain_parts['1'])) {
440-
$queryDomains[] = preg_replace("/.*" . $temp_domain_parts['0'] . "\." . "/", "", $temp_domain);
440+
$queryDomains[] = preg_replace("/.*" . preg_quote($temp_domain_parts['0']) . "\." . "/", "", $temp_domain);
441441
array_shift($temp_domain_parts);
442442
}
443443
}

0 commit comments

Comments
 (0)