Velocity
  1. Velocity
  2. VELOCITY-623

Modify escape behavior in strict mode

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Engine
    • Labels:
      None

      Description

      provides another property 'runtime.references.strict.escape' that when true modifies the behavior of escaping a reference when in strict mode, see discussion VELOCITY-618. The behavior is a as follows:

      $abc = <exception> - If $abc is not defined
      \$abc = $abc
      $abc = <exception> - If $abc is not defined
      \\\$abc = \$abc

      The backslash in front of a reference always prevents that reference from being evaluated, and the backslash is removed. This is true wether a reference is in the context or not.

        Issue Links

          Activity

          Byron Foster created issue -
          Byron Foster made changes -
          Field Original Value New Value
          Attachment StrictEscapeWithProperty.patch [ 12391863 ]
          Nathan Bubna made changes -
          Fix Version/s 1.7 [ 12313453 ]
          Byron Foster made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]
          Byron Foster made changes -
          Resolution Won't Fix [ 2 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Byron Foster made changes -
          Link This issue blocks VELOCITY-454 [ VELOCITY-454 ]
          Byron Foster made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Mark Thomas made changes -
          Workflow jira [ 12443855 ] Default workflow, editable Closed status [ 12551594 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12551594 ] jira [ 12552479 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Byron Foster
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development