]> source.dussan.org Git - vaadin-framework.git/commitdiff
Changed getAbsoluteUrl to use the correct escaping method (#13311)
authorJuho Nurminen <juho@vaadin.com>
Mon, 3 Feb 2014 15:18:45 +0000 (17:18 +0200)
committerHenri Sara <hesara@vaadin.com>
Tue, 11 Feb 2014 11:58:49 +0000 (11:58 +0000)
Change-Id: I84cece7ae1c8ede0b77b82d0f84d6550e77af65b

client/src/com/vaadin/client/Util.java

index 55d3d13c19f2de2ade6feb05fc7ca0f352fa3ab5..aae3dd545876b027f14925c1d4fc2cba880311db 100644 (file)
@@ -1343,7 +1343,8 @@ public class Util {
             divElement.getStyle().setDisplay(Display.NONE);
 
             RootPanel.getBodyElement().appendChild(divElement);
-            divElement.setInnerHTML("<a href='" + escapeHTML(url) + "' ></a>");
+            divElement.setInnerHTML("<a href='" + escapeAttribute(url)
+                    + "' ></a>");
 
             AnchorElement a = divElement.getChild(0).cast();
             String href = a.getHref();