diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-04-11 08:14:09 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-04-11 08:14:09 +0000 |
commit | 66322a130200e5327017103723e75953e3a75fc8 (patch) | |
tree | e3a9edb52da92d5c8dddac6a884dd8d727443811 /src/com/itmill/toolkit/terminal | |
parent | f2651dbf123f98dba64ae927ae8382dff7c7d1ee (diff) | |
download | vaadin-framework-66322a130200e5327017103723e75953e3a75fc8.tar.gz vaadin-framework-66322a130200e5327017103723e75953e3a75fc8.zip |
avoid all non alphanumeric chars in appId
svn changeset:4159/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java index 5dec2cd037..e7ff9ac775 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java @@ -757,7 +757,7 @@ public class ApplicationServlet extends HttpServlet { } String appId = appUrl; - appId = appId.replaceAll("/", ""); + appId = appId.replaceAll("[^a-zA-Z0-9]", ""); page.write("<script type=\"text/javascript\">\n"); page.write("//<![CDATA[\n"); |