]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/MIME.pm
* Add configuration variables for spamscan to Debbugs::Config
[debbugs.git] / Debbugs / MIME.pm
index 59ffda489b47c282d5c23d850177e07f1501b434..183adc7df072bb732155b1c022639f676cc5c3af 100644 (file)
@@ -243,6 +243,8 @@ MIME::Words::encode_mimeword on distinct words as appropriate.
 sub encode_rfc1522 ($) {
      my ($rawstr) = @_;
 
+     # handle being passed undef properly
+     return undef if not defined $rawstr;
      # We process words in reverse so we can preserve spacing between
      # encoded words. This regex splits on word|nonword boundaries and
      # nonword|nonword boundaries.