forked from freifunk-franken/firmware
fff-web-ui: Allow ampersand (&) in passwords
Fixes: #51 (gitea) Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
30cdaf6e54
commit
aea773a2a9
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fff-web-ui
|
PKG_NAME:=fff-web-ui
|
||||||
PKG_RELEASE:=16
|
PKG_RELEASE:=17
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# write
|
# write
|
||||||
if [ "$REQUEST_METHOD" = "POST" ] ; then
|
if [ "$REQUEST_METHOD" = "POST" ] ; then
|
||||||
#check for special characters in password
|
#check for special characters in password
|
||||||
regex='^[a-zA-Z0-9!#\$%\(\)\*\+,\.:;=\?@\^_-]+$'
|
regex='^[a-zA-Z0-9!#\$%\(\)\*\+,\.:;=\?@\^_&-]+$'
|
||||||
if [ "$POST_pass1" = "" ] ; then
|
if [ "$POST_pass1" = "" ] ; then
|
||||||
MSG='<span class="red">Das Passwort darf nicht leer sein!</span>'
|
MSG='<span class="red">Das Passwort darf nicht leer sein!</span>'
|
||||||
elif ! echo -n "$POST_pass1" | egrep -q "$regex"; then
|
elif ! echo -n "$POST_pass1" | egrep -q "$regex"; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user