Fix phpMyAdmin login check

This commit is contained in:
cytopia 2018-12-16 15:44:42 +01:00
parent 1d075f4b3b
commit 008cb7c023
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -144,6 +144,24 @@ while true; do
printf "\`"
continue;
fi
# Ensure Token does not contain '+'
if echo "${TOKEN}" | grep -q "+"; then
rm -f cookie.txt
printf "+"
continue;
fi
# Ensure Token does not contain ';'
if echo "${TOKEN}" | grep -q ";"; then
rm -f cookie.txt
printf ";"
continue;
fi
# Ensure Token does not contain '%'
if echo "${TOKEN}" | grep -q "%"; then
rm -f cookie.txt
printf "%%"
continue;
fi
# Ensure Token does not contain ']'
if echo "${TOKEN}" | grep -q "\]"; then
rm -f cookie.txt