[Python-modules-team] Bug#673987: stable not affected

Julian Taylor jtaylor.debian at googlemail.com
Tue May 22 16:34:16 UTC 2012


notfound 673987 1.0.1-1
thanks

the fix is a change of first match search to global search:
re.match(b(r"[\x00-\x1f]"), value)
to
re.search(b(r"[\x00-\x1f]"), value)

stable has:
safe_value = re.sub(r"[\x00-\x1f]", " ", value)[:4000]
if safe_value != value:
  raise ValueError("Unsafe header value %r", value)

which should be fine, re.sub works on the whole string.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120522/50b0bb29/attachment.pgp>


More information about the Python-modules-team mailing list