diff options
author | Eric Wong <e@yhbt.net> | 2020-06-28 07:14:40 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-28 18:35:47 +0000 |
commit | 52e37476e8e62e8e54104d9a2abcf2a86d1d1a32 (patch) | |
tree | 45b30d09fdf06c5baf475771d6e2c825abf14c50 /script | |
parent | 0d62ec0906ebdb4e9358ccb1c0d41a30f20711cf (diff) | |
download | public-inbox-52e37476e8e62e8e54104d9a2abcf2a86d1d1a32.tar.gz |
Apparently, using $1 from an octet string still results in a multi-byte string. Thus we need to perform utf8::encode after the regexp character match to ensure wide characters don't get passed to encode_base64. This fixes a bug in which caused -watch to crash when using PublicInbox::Filter::SubjectTag to remove "[list prefix]" tags from Subject: lines. I only found this bug because the proposed -watch updates for NNTP/IMAP support introduced a possible bug which triggered a full rescan of old archives: https://public-inbox.org/meta/20200627100400.9871-1-e@yhbt.net/
Diffstat (limited to 'script')
0 files changed, 0 insertions, 0 deletions