freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Těthal (JIRA) <j...@apache.org>
Subject [jira] [Created] (FREEMARKER-16) js_string buit-in function escapes '/' for first character
Date Mon, 14 Mar 2016 12:12:33 GMT
Martin Těthal created FREEMARKER-16:
---------------------------------------

             Summary: js_string buit-in function escapes '/' for first character
                 Key: FREEMARKER-16
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-16
             Project: Apache Freemarker
          Issue Type: Bug
          Components: engine
    Affects Versions: 2.3.23
            Reporter: Martin Těthal


${"bar/foo"?js_string} returns "bar/foo"
but
${"/foo"?js_string} returns "\/foo" (the first slash character is escaped by backslash).

I think the problem is from version 2.3.1 as documentation says:

Starting from FreeMarker 2.3.1, it also escapes > as \> (to avoid </script>).




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message