Skip to content

Commit 796a397

Browse files
authored
Merge pull request #15807 from DarrenRainey/develop
Patch for whitespace causing HTTP 500 errors.
2 parents 381c6e0 + 823af33 commit 796a397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snipeit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,15 +932,15 @@ case $setupmail in
932932

933933
echo -n " From name:"
934934
read -r mailfromname
935-
sed -i "s|^\\(MAIL_FROM_NAME=\\).*|\\1$mailfromname|" "$APP_PATH/.env"
935+
sed -i "s|^\\(MAIL_FROM_NAME=\\).*|\\1\\'$mailfromname\\'|" "$APP_PATH/.env"
936936

937937
echo -n " Reply to address:"
938938
read -r mailreplytoaddr
939939
sed -i "s|^\\(MAIL_REPLYTO_ADDR=\\).*|\\1$mailreplytoaddr|" "$APP_PATH/.env"
940940

941941
echo -n " Reply to name:"
942942
read -r mailreplytoname
943-
sed -i "s|^\\(MAIL_REPLYTO_NAME=\\).*|\\1$mailreplytoname|" "$APP_PATH/.env"
943+
sed -i "s|^\\(MAIL_REPLYTO_NAME=\\).*|\\1\\'$mailreplytoname\\'|" "$APP_PATH/.env"
944944
setupmail="yes"
945945
;;
946946
[nN] | [n|N][O|o] )

0 commit comments

Comments
 (0)