Christoph M. Becker
f901bec494
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.
2021-03-08 15:07:01 +01:00
..
2021-02-22 15:28:46 +01:00
2020-10-07 13:25:11 +02:00
2020-10-26 11:54:45 +01:00
2021-02-02 10:31:16 +01:00
2021-01-25 10:44:05 +00:00
2021-02-24 21:30:20 +01:00
2020-02-28 15:44:52 +01:00
2020-08-31 09:32:55 +02:00
2020-10-30 15:47:18 +01:00
2020-11-24 14:01:15 +01:00
2021-01-26 22:55:10 -08:00
2020-06-23 16:00:11 +02:00
2020-08-24 17:36:50 +02:00
2020-08-07 14:37:43 +02:00
2020-10-15 10:16:56 +02:00
2020-10-09 15:24:53 +02:00
2020-10-22 17:05:07 +01:00
2021-02-17 17:26:48 +01:00
2020-07-28 10:27:22 +02:00
2021-03-08 15:07:01 +01:00
2020-10-26 15:40:12 +01:00
2021-02-25 09:51:51 +01:00
2021-02-16 15:34:14 +01:00
2021-02-02 16:46:16 +01:00
2020-10-29 13:09:19 +01:00
2021-03-05 15:06:18 +01:00
2021-02-25 13:52:35 +01:00
2020-08-05 18:18:06 +02:00
2020-09-21 10:28:22 +02:00
2020-10-28 12:18:02 +01:00
2020-12-14 18:26:12 +01:00
2020-08-31 11:08:26 +02:00
2020-09-28 22:58:16 +02:00
2020-08-31 11:08:26 +02:00
2020-08-31 11:08:26 +02:00
2021-02-08 18:57:08 +01:00
2021-02-03 11:22:37 +01:00
2020-08-05 10:39:30 +02:00
2021-01-07 13:46:09 +01:00
2021-02-25 20:53:14 +00:00
2021-02-22 12:32:56 +01:00
2020-05-13 23:25:28 +02:00
2020-05-01 12:40:37 +02:00
2020-11-02 11:39:42 +01:00
2021-02-02 10:05:35 +01:00
2020-08-26 12:11:22 +02:00
2020-08-14 15:52:15 +02:00
2021-02-15 10:37:59 +01:00
2020-08-21 15:45:51 +02:00
2021-03-08 14:36:31 +01:00
2020-11-22 14:02:29 +01:00
2020-08-10 12:25:26 +02:00
2020-02-03 23:33:20 +01:00
2020-10-30 15:47:18 +01:00
2021-01-20 16:20:13 +01:00
2020-12-08 12:23:24 +01:00