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.
bnet/additions
dessert1 4 years ago committed by Aleksander Machniak
parent 734f97511a
commit 2005b895be

@ -592,7 +592,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