SWF-1358 Modified Spring.RemotingHandler to remove scripts (but not script tags) from partial responses.

This commit is contained in:
Rossen Stoyanchev
2010-07-15 19:16:12 +00:00
parent 73ea5cd6e1
commit c132081683

View File

@@ -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, '<script> // Original script removed to avoid re-execution </script>');
if (modalView) {
//For a modal view, just dump the response into a modal dialog