]> git.eshelyaron.com Git - emacs.git/commitdiff
2004-10-07 Mark A. Hershberger <mah@everybody.org>
authorMark A. Hershberger <mah@everybody.org>
Thu, 7 Oct 2004 18:13:43 +0000 (18:13 +0000)
committerMark A. Hershberger <mah@everybody.org>
Thu, 7 Oct 2004 18:13:43 +0000 (18:13 +0000)
* xml.el (xml-substitute-special): Limit handling of external
entities.

lisp/xml.el

index f1d8cbb1f002658425725f97978d279fb6cd1541..b0d5d45f98d191d5139b2bc060ac3a1cea75bbfe 100644 (file)
@@ -727,14 +727,9 @@ This follows the rule [28] in the XML specifications."
                                (match-string 1 this-part)))))))
 
        (cond ((null children)
-              (if (and (eq (length expansion) 1)
-                       (stringp (cadr expansion)))
-                  (setq children (concat prev-part expansion))
-                (if (stringp (car expansion))
-                    (setq children
-                          (list (concat prev-part (car expansion))
-                                (append (cdr expansion))))
-                  (setq children (append expansion prev-part)))))
+              ;; FIXME: If we have an entity that expands into XML, this won't work.
+              (setq children
+                    (concat prev-part expansion)))
              ((stringp children)
               (if (stringp expansion)
                   (setq children (concat children prev-part expansion))