mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* xml.el (xml-parse-string): Fix typo in handling of bad character references.
This commit is contained in:
parent
1a359750bb
commit
a1d23eb505
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2013-02-13 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* xml.el (xml-parse-string): Fix typo in handling of bad character
|
||||
references.
|
||||
|
||||
2013-02-10 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/ange-ftp.el (ange-ftp-make-directory): Don't raise an error,
|
||||
|
|
|
|||
|
|
@ -611,7 +611,7 @@ references."
|
|||
xml-validating-parser
|
||||
(error "XML: (Validity) Invalid character reference `%s'"
|
||||
(match-string 0)))
|
||||
(replace-match (or (string val) xml-undefined-entity) t t))
|
||||
(replace-match (if val (string val) xml-undefined-entity) t t))
|
||||
;; For an entity reference, search again from the start of
|
||||
;; the replaced text, since the replacement can contain
|
||||
;; entity or character references, or markup.
|
||||
|
|
@ -620,7 +620,7 @@ references."
|
|||
(and (null val)
|
||||
xml-validating-parser
|
||||
(error "XML: (Validity) Undefined entity `%s'" ref))
|
||||
(replace-match (cdr val) t t)
|
||||
(replace-match (or (cdr val) xml-undefined-entity) t t)
|
||||
(goto-char (match-beginning 0)))
|
||||
;; Check for XML bombs.
|
||||
(and xml-entity-expansion-limit
|
||||
|
|
|
|||
Loading…
Reference in a new issue