wok-tiny diff wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh @ rev 142
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 27 17:43:23 2019 +0100 (2019-02-27) |
parents | 48d2c4c7a227 |
children |
line diff
1.1 --- a/wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh Sat Oct 31 16:32:19 2015 +0100 1.2 +++ b/wiki/stuff/var/www/wiki/plugins/wkp_Admin.sh Wed Feb 27 17:43:23 2019 +0100 1.3 @@ -47,7 +47,7 @@ 1.4 secret="admin.secret" 1.5 if [ -n "$(POST setpass)" ]; then 1.6 if [ -z "$curpass" ]; then # unauthorized 1.7 - if [ ! -s $secret -o "$(cat $secret 2> /dev/null)" == \ 1.8 + if [ ! -s $secret -o "$(cat $secret 2> /dev/null)" = \ 1.9 "$(echo $(POST password) | md5sum)" ]; then 1.10 curpass="$(POST password)" 1.11 fi