Additional patch for https://bugs.cacert.org/view.php?id=1392
Issue of certificates to arbitrary domains.
This commit is contained in:
parent
edae6c8e40
commit
9464b4e07a
1 changed files with 2 additions and 2 deletions
|
@ -356,7 +356,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if(!preg_match("/(?=^.{4,253}$)(^(?:\\*\\.)?((?!-)[a-zA-Z0-9_-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)/i", $subalt)) {
|
||||
if(!preg_match("/(?=^.{4,253}$)(^(?:\\*\\.)?((?!-)[a-zA-Z0-9_-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)/i", $alt)) {
|
||||
$altok = 0;
|
||||
}
|
||||
|
||||
|
@ -455,7 +455,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if(!preg_match("/(?=^.{4,253}$)(^(?:\\*\\.)?((?!-)[a-zA-Z0-9_-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)/i", $subalt)) {
|
||||
if(!preg_match("/(?=^.{4,253}$)(^(?:\\*\\.)?((?!-)[a-zA-Z0-9_-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)/i", $alt)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue