Fix a bug in UTF7 conversion to support other languages (like Russian) https://github.com/webmin/usermin/issues/62

Folder name like `.&BB8EQAQ4BDIENQRC-` wasn't working before
This commit is contained in:
Ilia Rostovtsev
2020-10-23 22:40:26 +03:00
parent bec8d15d7a
commit 18b12d3401

View File

@@ -1719,7 +1719,6 @@ foreach my $c (@a) {
my $d = $1;
$d =~ s/,/\//g;
my $p = length($d) % 4;
$b = $c, next if (!$p);
$d .= "=" x (4 - $p) if ($p);
$b .= $u->decode(decode_base64($d));
}