Compare commits

...

1 Commits

Author SHA1 Message Date
Fabian Bläse fd8dc573c9 fff-web-ui: Allow ampersand (&) in passwords
Fixes: #51
Signed-off-by: Fabian Bläse <fabian@blaese.de>
2021-01-27 11:28:45 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-web-ui
PKG_RELEASE:=16
PKG_RELEASE:=17
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -4,7 +4,7 @@
# write
if [ "$REQUEST_METHOD" = "POST" ] ; then
#check for special characters in password
regex='^[a-zA-Z0-9!#\$%\(\)\*\+,\.:;=\?@\^_-]+$'
regex='^[a-zA-Z0-9!#\$%\(\)\*\+,\.:;=\?@\^_&-]+$'
if [ "$POST_pass1" = "" ] ; then
MSG='<span class="red">Das Passwort darf nicht leer sein!</span>'
elif ! echo -n "$POST_pass1" | egrep -q "$regex"; then