Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 129920
Status: patched
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: jens [...] jebecs.de (daily)
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.42
Fixed in: (no value)



Subject: Parsing headers fails under special condition
Hi! Parsing the headers fails if there are no spaces and the header value (body) contains colons. In that case the last colon within the line is matched. E.g. (pseudo code): line => "X-UI-Loop:V01:q7FVKT02ing=:CI4X73x1iDbky5yDnSnRdw==" will be parsed into name => "X-UI-Loop:V01:q7FVKT02ing=" body => "CI4X73x1iDbky5yDnSnRdw==" Problem lies in IMAPClient.pm, line 2571. Instead of s/^(\S+)\:\s*// I'd rather suggest s/^(\S+?)\:\s*// or, more understandable: s/^([^\s:]+)\:\s*// Regards, Jens
Sorry for the incredibly late response. I've patched this and it will be in the next release. commit 2281e5d8a6d8168b490e257c468fb50d74122f08 (HEAD -> master, origin/master, origin/HEAD) Author: Phil Pearl <plobbes@gmail.com> Date: Tue Oct 13 00:29:59 2020 -0400 - rt.cpan.org#129920: Parsing headers fails under special condition