note 125044 added to function.quoted-printable-decode

From: Date: Mon, 25 May 2020 14:31:01 +0000
Subject: note 125044 added to function.quoted-printable-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-214675@lists.php.net to get a copy of this message
If there is a NULL byte in the string that is passed, quoted_printable_decode will crop everything after the NULL byte and the NULL byte itself. <?php $result = quoted_printable_decode("This is a\0 test."); // $result === 'This is a' ?> This is not a bug, but the intended behaviour and defined by RFC 2045 (see https://www.ietf.org/rfc/rfc2045.txt) in paragraph 2.7 and 2.8. ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.166.36 (proxied: 2001:678:4a8:100:222e:f16d:1889:a7b1) ---- Manual Page -- http://php.net/manual/en/function.quoted-printable-decode.php Edit -- https://master.php.net/note/edit/125044 Del: integrated -- https://master.php.net/note/delete/125044/integrated Del: useless -- https://master.php.net/note/delete/125044/useless Del: bad code -- https://master.php.net/note/delete/125044/bad+code Del: spam -- https://master.php.net/note/delete/125044/spam Del: non-english -- https://master.php.net/note/delete/125044/non-english Del: in docs -- https://master.php.net/note/delete/125044/in+docs Del: other reasons-- https://master.php.net/note/delete/125044 Reject -- https://master.php.net/note/reject/125044 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214675) next »