[pve-devel] [PATCH common] fix #1363: dont encode unicode strings in passwords

Dietmar Maurer dietmar at proxmox.com
Tue May 2 08:32:41 CEST 2017


Are you sure this is the correct fix?

> -    return crypt(encode("utf8", $pw), "\$5\$$salt\$");
> +    return crypt($pw, "\$5\$$salt\$");


If I run this with $pw = "€" if get an exception:

"wide character in crypt at"

?? 




More information about the pve-devel mailing list