Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > by-pkgid > 7c6e23d52cbdc5ce0ccc74898581982c > files > 25

webmin-1.441-2mdv2009.1.src.rpm

diff -p -up webmin-1.390/miniserv.pl.org webmin-1.390/miniserv.pl
--- webmin-1.390/miniserv.pl.org	2008-03-19 13:23:46.000000000 -0300
+++ webmin-1.390/miniserv.pl	2008-03-19 13:29:10.000000000 -0300
@@ -2943,6 +2943,7 @@ elsif ($canmode == 1) {
 	}
 elsif ($canmode == 2 || $canmode == 3) {
 	# Attempt PAM or passwd file authentication
+	utf8::encode($pass);
 	local $val = &validate_unix_user($canuser, $pass);
 	print DEBUG "validate_user: unix val=$val\n";
 	if ($val && $sudo) {