summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/php_pdo_sqlite_int.h
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-03-03 19:23:39 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-03-08 15:07:01 +0100
commitf901bec494ae921f36e1066e4380b92888757f0f (patch)
treea6c11bd896ae5572f72a85b259ad1d587c30a0eb /ext/pdo_sqlite/php_pdo_sqlite_int.h
parent5787f91c55a7ebaeb34711d303cfc27f089f58b3 (diff)
downloadphp-git-f901bec494ae921f36e1066e4380b92888757f0f.tar.gz
Fix #51903: simplexml_load_file() doesn't use HTTP headers
The `encoding` attribute of the XML declaration is optional; it is good practice to use external encoding information where available if it is missing. Thus, we check for `charset` info of `Content-Type` headers, and see whether the encoding is supported. We cater to trailing parameters and quoted-strings, but not to escaped backslashes and quotes in quoted-strings, since no known character encoding contains these anyway. Co-authored-by: Michael Wallner <mike@php.net> Closes GH-6747.
Diffstat (limited to 'ext/pdo_sqlite/php_pdo_sqlite_int.h')
0 files changed, 0 insertions, 0 deletions