Fix handling keyservers configured with protocol prefix (#7295)

`|^[a-z]://|` matches only single-character protocol shortnames, to correctly exclude e.g. `hkps://` the expression should be `|^[a-z]+://|` instead.
pull/7296/head
dessert1 4 years ago committed by GitHub
parent 3d4a02a3a6
commit e66ffae856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -594,7 +594,7 @@ class rcube_config
$list = (array) $this->prop['keyservers'];
foreach ($list as $idx => $host) {
if (!preg_match('|^[a-z]://|', $host)) {
if (!preg_match('|^[a-z]+://|', $host)) {
$host = "https://$host";
}

Loading…
Cancel
Save