Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5159

Replace usage of JavaScript eval() with plain JS in headed contribution decoding

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.7.0
    • 6.8.0
    • wicket
    • None

    Description

      Wicket uses the special "]^" sequence to encode ']' in Ajax responses.
      To make the replacement a regex is executed in an eval() in the private function 'replaceAll' in wicket-ajax-jquery.js.

      We found a problem with the usage of eval() when Google Closure optimizer is used - the text to be eval-ed doesn't see the renamed variables by the optimizer. Thus the whole replacement breaks and the produced outcome is not the expected one.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: