From 008cb7c023e33445d8ee3d305c85c0e2125ed13a Mon Sep 17 00:00:00 2001 From: cytopia Date: Sun, 16 Dec 2018 15:44:42 +0100 Subject: [PATCH] Fix phpMyAdmin login check --- .tests/intra-tests/vendor-phpmyadmin.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.tests/intra-tests/vendor-phpmyadmin.sh b/.tests/intra-tests/vendor-phpmyadmin.sh index 142ffae6..ad901c53 100755 --- a/.tests/intra-tests/vendor-phpmyadmin.sh +++ b/.tests/intra-tests/vendor-phpmyadmin.sh @@ -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