[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_1_BRANCH: kdelibs/khtml/dom
From:       David Faure <faure () kde ! org>
Date:       2003-06-30 23:52:14
[Download RAW message or body]

CVS commit by faure: 

Don't crash in setPrefix(null string)


  M +2 -1      dom_element.cpp   1.30.2.7


--- kdelibs/khtml/dom/dom_element.cpp  #1.30.2.6:1.30.2.7
@@ -341,5 +341,6 @@ bool Element::khtmlValidAttrName(const D
 bool Element::khtmlValidPrefix(const DOMString &name)
 {
-    return khtmlValidAttrName(name);
+    // Null prefix is ok. If not null, reuse code from khtmlValidAttrName
+    return !name.implementation() || khtmlValidAttrName(name);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic