Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13283

Prevent scripts from modifying reserved variables such as $doc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 7.4
    • Old Core
    • None
    • Unknown

    Description

      For example, if you write the following in a wiki page, save and then try to edit it, you won't be able to do so:

      {{velocity}}
      #set ($someVar = $NULL)
      #set ($doc = $xwiki.getDocument("${someVar}-whatever"))
      $doc
      {{/velocity}}
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: