Skip to content

Commit 4f4aafa

Browse files
committed
GRAILS-11317 wrap remoteFunction, remoteLink and remoteField with raw by default so that they can be used with function call syntax in GSP expressions
1 parent ade540e commit 4f4aafa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

grails-plugin-gsp/src/main/groovy/org/codehaus/groovy/grails/plugins/web/taglib/JavascriptTagLib.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ class JavascriptTagLib implements ApplicationContextAware {
5050
Class<JavascriptProvider> defaultProvider
5151
boolean hasResourceProcessor = false
5252

53-
static encodeAsForTags = [escapeJavascript: 'JavaScript', javascript: [expressionCodec:"JavaScript", scriptletCodec:"JavaScript", replaceOnly:true]]
53+
static encodeAsForTags = [escapeJavascript: 'JavaScript',
54+
javascript: [expressionCodec:"JavaScript", scriptletCodec:"JavaScript", replaceOnly:true],
55+
remoteFunction: 'raw',
56+
remoteLink: 'raw',
57+
remoteField: 'raw'
58+
]
5459

5560
JavascriptTagLib() {
5661
def cl = Thread.currentThread().contextClassLoader

0 commit comments

Comments
 (0)