]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Fix synatx error in scripts/process.in
authorDon Armstrong <don@donarmstrong.com>
Tue, 12 Feb 2008 20:12:43 +0000 (12:12 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 12 Feb 2008 20:12:43 +0000 (12:12 -0800)
 * Handle undef being passed in Debbugs::Mime::encode_rfc1522

Debbugs/MIME.pm
scripts/process.in

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.
index c53e108ccd9c39ffc298166af9059e091216c817..7c3a6f6e7832ef7cc95111c4485b86789ac9f884 100755 (executable)
@@ -569,7 +569,7 @@ if ($ref<0) {
              for my $tag (split /[,\s]+/, $pheader{usertags}) {
                   if ($tag =~ /^[a-zA-Z0-9.+\@-]+/) {
                        my %bugs_with_tag; 
-                       @bugs_with_tag{@{$user_tags{$tag}||[]]}} = (1) x @{$user_tags{$tag}||[]};
+                       @bugs_with_tag{@{$user_tags{$tag}||[]}} = (1) x @{$user_tags{$tag}||[]};
                        $bugs_with_tag{$ref} = 1;
                        $user_tags{$tag} = [keys %bugs_with_tag];
                   }