diff --git a/action.sh b/action.sh index ca0bb56..6ec1940 100755 --- a/action.sh +++ b/action.sh @@ -45,7 +45,7 @@ function checkaction { } function checkuser { - REGEX="^[A-Za-z0-9._+-]+$" + REGEX="^[A-Za-z0-9._+-]+$" # Allowed symbols if [[ $1 =~ $REGEX ]]; then echo "true" else @@ -54,8 +54,8 @@ function checkuser { } function checkpass { - REGEX="^[A-Za-z0-9.\"ยง$/%&\(\)=@:;#*_+-]+$" - if [[ $1 =~ $REGEX ]]; then + REGEX="[ 'x\\]" # Not allowed symbols + if [[ ! "$1" =~ $REGEX ]]; then echo "true" else echo "false" diff --git a/file.txt b/file.txt deleted file mode 100644 index 5be4842..0000000 --- a/file.txt +++ /dev/null @@ -1 +0,0 @@ -password ' ls -R