Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3286

Add new setting URLEscapingCharset to the freemarker config

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Neutral Neutral
    • 4.5.11, 5.1
    • 4.3.6
    • freemarker
    • None
    • Yes

      Since Freemarker 2.3.1 a new built-in exists: ?url for url escaping: see http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_url. For this built-in to work the charset has to be set. That can be done in tree ways:

      1. as a parameter of the built-in itself: ${x?url('UTF-8')}
      2. add a setting to a template: setting url_escaping_charset="UTF-8"
      3. add the setting to the freemarker config.

      The patch added takes care of option 3.

        Acceptance criteria

              ochytil Ondrej Chytil
              bertleunis Bert Leunis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD