php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75979 mb_encode_mimeheader invalid MIME quoted-printable
Submitted: 2018-02-18 20:12 UTC Modified: -
From: azurit at pobox dot sk Assigned:
Status: Open Package: mbstring related
PHP Version: 7.2.2 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-02-18 20:12 UTC] azurit at pobox dot sk
Description:
------------
Function mb_encode_mimeheader is NOT quoting a colon character (:), which is against RFC, see:
https://tools.ietf.org/html/rfc5322#section-3.2.3

See also this very same Thunderbird bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1438590

Test script:
---------------
<?php

mb_internal_encoding('UTF-8');
echo mb_encode_mimeheader("test:test", "UTF-8", "Q");

?>

Expected result:
----------------
test=3atest

Actual result:
--------------
test:test

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 04:01:25 2019 UTC