From c13208168348136e5edb1ac833e0d5e62dba3cde Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 15 Jul 2010 19:16:12 +0000 Subject: [PATCH] SWF-1358 Modified Spring.RemotingHandler to remove scripts (but not script tags) from partial responses. --- spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js b/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js index 0ee46d49..13a4184f 100644 --- a/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js +++ b/spring-js/src/main/resources/META-INF/spring/Spring-Dojo.js @@ -298,7 +298,8 @@ dojo.declare("Spring.RemotingHandler", Spring.AbstractRemotingHandler, { extractedScriptNodes.push(script); } } - response = response.replace(matchAll, ''); + // Remove scripts but don't remove scripts entirely (see SWF-1358) + response = response.replace(matchAll, ''); if (modalView) { //For a modal view, just dump the response into a modal dialog