diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/xml.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 580f9ea26be..5a80702af0d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-13 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * xml.el (xml-parse-string): Fix typo in handling of bad character | ||
| 4 | references. | ||
| 5 | |||
| 1 | 2013-02-10 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-02-10 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error, | 8 | * net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error, |
diff --git a/lisp/xml.el b/lisp/xml.el index 2232746f02a..a3d34670bfb 100644 --- a/lisp/xml.el +++ b/lisp/xml.el | |||
| @@ -611,7 +611,7 @@ references." | |||
| 611 | xml-validating-parser | 611 | xml-validating-parser |
| 612 | (error "XML: (Validity) Invalid character reference `%s'" | 612 | (error "XML: (Validity) Invalid character reference `%s'" |
| 613 | (match-string 0))) | 613 | (match-string 0))) |
| 614 | (replace-match (or (string val) xml-undefined-entity) t t)) | 614 | (replace-match (if val (string val) xml-undefined-entity) t t)) |
| 615 | ;; For an entity reference, search again from the start of | 615 | ;; For an entity reference, search again from the start of |
| 616 | ;; the replaced text, since the replacement can contain | 616 | ;; the replaced text, since the replacement can contain |
| 617 | ;; entity or character references, or markup. | 617 | ;; entity or character references, or markup. |
| @@ -620,7 +620,7 @@ references." | |||
| 620 | (and (null val) | 620 | (and (null val) |
| 621 | xml-validating-parser | 621 | xml-validating-parser |
| 622 | (error "XML: (Validity) Undefined entity `%s'" ref)) | 622 | (error "XML: (Validity) Undefined entity `%s'" ref)) |
| 623 | (replace-match (cdr val) t t) | 623 | (replace-match (or (cdr val) xml-undefined-entity) t t) |
| 624 | (goto-char (match-beginning 0))) | 624 | (goto-char (match-beginning 0))) |
| 625 | ;; Check for XML bombs. | 625 | ;; Check for XML bombs. |
| 626 | (and xml-entity-expansion-limit | 626 | (and xml-entity-expansion-limit |