You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Martin Těthal (JIRA)" <ji...@apache.org> on 2016/03/14 13:12:33 UTC

[jira] [Created] (FREEMARKER-16) js_string buit-in function escapes '/' for first character

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)