wok-current rev 11602
busybox/httpd: allow clear passwords
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 18 16:00:42 2012 +0100 (2012-01-18) |
parents | d5189db061ed |
children | fbb96c849931 |
files | busybox/stuff/busybox-1.18-httpd.u |
line diff
1.1 --- a/busybox/stuff/busybox-1.18-httpd.u Tue Jan 17 11:07:11 2012 +0100 1.2 +++ b/busybox/stuff/busybox-1.18-httpd.u Wed Jan 18 16:00:42 2012 +0100 1.3 @@ -194,7 +194,7 @@ 1.4 + /* this cfg entry is '*' or matches username from peer */ 1.5 + 1.6 + /* encrypt pwd from peer and check match with local one */ 1.7 -+ { 1.8 ++ if (passwd[0] == '$' && passwd[1] == '1' && passwd[2] == '$') { 1.9 + char *encrypted = pw_encrypt( 1.10 + /* pwd: */ colon_after_user + 1, 1.11 + /* salt: */ passwd,