diff options
| author | Philipp Stephani | 2020-05-23 13:56:09 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2020-05-23 14:01:17 +0200 |
| commit | f8581bcf6a1942ebd331cae20e32945a3a86a3d1 (patch) | |
| tree | 3f1a946cba9cdac5b03f09ec1b01be962256295f /etc | |
| parent | 232bb691c1095574b85b358c7f33a46d2ea79f29 (diff) | |
| download | emacs-f8581bcf6a1942ebd331cae20e32945a3a86a3d1.tar.gz emacs-f8581bcf6a1942ebd331cae20e32945a3a86a3d1.zip | |
Reject invalid characters in XML strings (Bug#41094).
* lisp/xml.el (xml-escape-string): Search for invalid characters.
(xml-invalid-character): New error symbol.
* test/lisp/xml-tests.el (xml-print-invalid-cdata): New unit test.
* etc/NEWS: Document new behavior.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -393,6 +393,13 @@ component are now rejected by 'json-read' and friends. This makes | |||
| 393 | them more compliant with the JSON specification and consistent with | 393 | them more compliant with the JSON specification and consistent with |
| 394 | the native JSON parsing functions. | 394 | the native JSON parsing functions. |
| 395 | 395 | ||
| 396 | ** xml.el | ||
| 397 | |||
| 398 | *** XML serialization functions now reject invalid characters. | ||
| 399 | Previously 'xml-print' would produce invalid XML when given a string | ||
| 400 | with characters that are not valid in XML (see | ||
| 401 | https://www.w3.org/TR/xml/#charsets). Now it rejects such strings. | ||
| 402 | |||
| 396 | 403 | ||
| 397 | * New Modes and Packages in Emacs 28.1 | 404 | * New Modes and Packages in Emacs 28.1 |
| 398 | 405 | ||