1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 09:56:01 +00:00

Merge pull request #5530 from Quiwy/staging

fix: support utf-8 in password synchronization
This commit is contained in:
Niklas Meyer
2023-11-16 11:21:27 +01:00
committed by GitHub

View File

@@ -119,7 +119,9 @@ while ($row = $sth->fetchrow_arrayref()) {
my $template = $run_dir . '/imapsync.XXXXXXX';
my $passfile1 = File::Temp->new(TEMPLATE => $template);
my $passfile2 = File::Temp->new(TEMPLATE => $template);
binmode( $passfile1, ":utf8" );
print $passfile1 "$password1\n";
print $passfile2 trim($master_pass) . "\n";