]> git.g-eek.se Git - interimap.git/commitdiff
Fix uninitialized value $set in quotemeta
authorGuilhem Moulin <guilhem@fripost.org>
Tue, 8 May 2018 23:22:32 +0000 (01:22 +0200)
committerGuilhem Moulin <guilhem@fripost.org>
Tue, 8 May 2018 23:22:32 +0000 (01:22 +0200)
lib/Net/IMAP/InterIMAP.pm

index 4a9ffd9017402707f886b92eaffc35676c4e2ecc..d898f6dec731ea4226778d50b92058ecc30d9ced 100644 (file)
@@ -2288,7 +2288,7 @@ sub _resp($$;&$$) {
         elsif (/\ASEARCH((?: [0-9]+)*)\z/) {
             $callback->(split(/ /, ($1 =~ s/^ //r))) if defined $callback and $cmd eq 'SEARCH';
         }
-        elsif (s/\AESEARCH \(TAG \Q$set\E\)( UID)?//) {
+        elsif (defined $set and s/\AESEARCH \(TAG \Q$set\E\)( UID)?//) {
             my $uid = $1;
             my %ret; # RFC 4731
             while ($_ ne '') {