From 5d5f34b7e79e2e757a51ab46c9adfaebb6c77f1a Mon Sep 17 00:00:00 2001 From: Ffaen Date: Sun, 26 Dec 2021 00:19:35 +0000 Subject: [PATCH] Escape email and password upon IN User Creation (#419) Fixes #415 --- alpine/5/rootfs/docker-entrypoint-init.d/10-init-in.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/alpine/5/rootfs/docker-entrypoint-init.d/10-init-in.sh b/alpine/5/rootfs/docker-entrypoint-init.d/10-init-in.sh index dae8552..dee11cb 100755 --- a/alpine/5/rootfs/docker-entrypoint-init.d/10-init-in.sh +++ b/alpine/5/rootfs/docker-entrypoint-init.d/10-init-in.sh @@ -3,12 +3,13 @@ php artisan db:seed --force # Build up array of arguments... +# We escape the env variables in order to allow special characters if [[ ! -z "${IN_USER_EMAIL}" ]]; then - email="--email ${IN_USER_EMAIL}" + email="--email \"${IN_USER_EMAIL}\"" fi if [[ ! -z "${IN_PASSWORD}" ]]; then - password="--password ${IN_PASSWORD}" + password="--password \"${IN_PASSWORD}\"" fi php artisan ninja:create-account $email $password