From a1ca50ab57b0da35baa51083ffb4d5dcf1799f2f Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 2 Feb 2020 02:07:38 +0000 Subject: [PATCH] hooks: Add mising quote in the example post-data hook The example post-data hook was missing a quote around a sub-shell execution. This is harmless because the content itself is admin-provided and not related to user input, but this commit fixes the quote for defense in depth and consistency. --- etc/chasquid/hooks/post-data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/chasquid/hooks/post-data b/etc/chasquid/hooks/post-data index aa0ccc9..ae24315 100755 --- a/etc/chasquid/hooks/post-data +++ b/etc/chasquid/hooks/post-data @@ -86,7 +86,7 @@ if [ "$AUTH_AS" != "" ] && command -v dkimsign; then && [ -f "certs/$DOMAIN/dkim_privkey.pem" ]; then dkimsign -n -hd \ -key "certs/$DOMAIN/dkim_privkey.pem" \ - -s $(cat "domains/$DOMAIN/dkim_selector") \ + -s "$(cat "domains/$DOMAIN/dkim_selector")" \ -d "$DOMAIN" \ < "$TF" fi