From: Paul Hänsch Date: Mon, 26 Feb 2024 16:21:53 +0000 (+0100) Subject: Bugfix: faulty email address check X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=0591b0842c75fd078d19e488f5e4a8d047052551;p=cgilite Bugfix: faulty email address check --- diff --git a/users.sh b/users.sh index f60f8a6..be68a8a 100755 --- a/users.sh +++ b/users.sh @@ -274,7 +274,7 @@ user_register(){ fi if [ "$USER_REQUIREEMAIL" = true ]; then - if [ ! "email" ]; then + if [ ! "$email" ]; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_INVALID" elif user_emailexist "$email"; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_EXISTS" @@ -342,7 +342,7 @@ user_invite(){ local email="$(POST email |user_checkemail)" local message="$(POST message)" - if [ ! "email" ]; then + if [ ! "$email" ]; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_INVALID" elif user_emailexist "$email"; then REDIRECT "${_BASE}${PATH_INFO}#ERROR_EMAIL_EXISTS"