]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed a possible security vulnerability in IWindow. The window caption string was...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 24 Jul 2008 07:57:56 +0000 (07:57 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 24 Jul 2008 07:57:56 +0000 (07:57 +0000)
svn changeset:5115/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java

index 10bfd939bed009a0a54f8a5969cddd23100fbf3b..76c7a9ea81179dce31090529e485cf302a6aa4f9 100644 (file)
@@ -491,7 +491,7 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener {
     }
 
     public void setCaption(String c, String icon) {
-        String html = c;
+        String html = Util.escapeHTML(c);
         if (icon != null) {
             icon = client.translateToolkitUri(icon);
             html = "<img src=\"" + icon + "\" class=\"i-icon\" />" + html;