]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email: protect output of subject_m in quotes
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 22 Jun 2016 17:55:52 +0000 (10:55 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Wed, 22 Jun 2016 17:55:52 +0000 (10:55 -0700)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
email/aiaiai-email-lda

index d3582adcaf014c4ba15b68e817500dba754d6888..c5a59b64e1d7d5ae5cef8bf2854cb7e8f8ecf377 100755 (executable)
@@ -383,7 +383,7 @@ process_mbox()
        # Filter out e-mails which do not contain a patch
        if ! email_contains_patch "$mbox" ; then
                # Keep cover letter patches, but discard anything else
-               [ $(subject_m "$subj") = "0" ] ||
+               [ "$(subject_m "$subj")" = "0" ] ||
                        { reject "$mbox" "mbox contains no patch and is not a cover letter"; return ; }
        fi