Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2657

Already escaped apostrophes are double-escaped while building the ClientBehavior JavaScript

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta-3
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently we do StringUtils.replace(userEventCode, '\'', "
      '"); for escaping purposes, but this breaks when apostrophes in JavaScript code are already escaped, because they get double-escaped.

        Attachments

          Activity

            People

            • Assignee:
              jakobkorherr Jakob Korherr
              Reporter:
              jakobkorherr Jakob Korherr
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: