Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1fe516f

Browse files
Fixed issue of missing quotes for parsing attributes, causing adverse and disasterous effects when rendering HTML
1 parent 3d166c3 commit 1fe516f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/net/ddns/cyberstudios/XMLTools.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static Element parse(org.w3c.dom.Element root, Element parent) {
7979
for (int i = 0; i < root.getAttributes().getLength(); i++) {
8080
Attr item = (Attr) root.getAttributes().item(i);
8181
String attrKey = item.getNodeName();
82-
String attrValue = item.getNodeValue();
82+
String attrValue = "\"" + item.getNodeValue() + "\"";
8383
element.addAttribute(attrKey, attrValue);
8484
}
8585
NodeList childNodes = root.getChildNodes();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /