]> granicus.if.org Git - php/commit
Require strict base64 in data URI
authorLauri Kenttä <lauri.kentta@gmail.com>
Mon, 11 Jul 2016 09:40:03 +0000 (12:40 +0300)
committerNikita Popov <nikic@php.net>
Fri, 22 Jul 2016 16:03:55 +0000 (18:03 +0200)
commit7a02704c0ecdf4373c810760e70a424841619e0c
treec9076eab42da2e8137b872663b1a1c37cdc66576
parentf775199ac70abef4bf7fa29c805d73df09131e21
Require strict base64 in data URI

As the tests already show, the data URI wrapper is supposed to fail
for corrupt input, but for some reason, one case of invalid input is
still allowed to pass?! Strict base64 makes a lot more sense here.
Also, Chromium and Firefox fail on invalid base64, so it's a logical
choice for PHP as well.
ext/standard/tests/file/stream_rfc2397_006.phpt
main/streams/memory.c