From aea773a2a9c85a991b9f26668db7885f2f8c5411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Wed, 27 Jan 2021 11:26:32 +0100 Subject: [PATCH] fff-web-ui: Allow ampersand (&) in passwords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #51 (gitea) Signed-off-by: Fabian Bläse Reviewed-by: Robert Langhammer --- src/packages/fff/fff-web-ui/Makefile | 2 +- src/packages/fff/fff-web-ui/files/www/ssl/cgi-bin/password.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/fff/fff-web-ui/Makefile b/src/packages/fff/fff-web-ui/Makefile index f4079b52..42eaf1f3 100644 --- a/src/packages/fff/fff-web-ui/Makefile +++ b/src/packages/fff/fff-web-ui/Makefile @@ -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) diff --git a/src/packages/fff/fff-web-ui/files/www/ssl/cgi-bin/password.html b/src/packages/fff/fff-web-ui/files/www/ssl/cgi-bin/password.html index e65d0720..3f0a3ac1 100755 --- a/src/packages/fff/fff-web-ui/files/www/ssl/cgi-bin/password.html +++ b/src/packages/fff/fff-web-ui/files/www/ssl/cgi-bin/password.html @@ -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='Das Passwort darf nicht leer sein!' elif ! echo -n "$POST_pass1" | egrep -q "$regex"; then