Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-977

XTile component incorrectly quotes request URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 4.1.1
    • Contrib
    • None

    Description

      XTile.script file contains this function:

      function quoteUrl(text)

      { return escape(text).replace(/\+/g, '%2C').replace(/\"/g,'%22').replace(/\'/g, '%27'); }

      Which enocdes a '+' as %2C which decodes as a comma.

      The '%2C' should be '%2B'

      Perhaps the code should actually use the JavaScript encodeURI() or encodeURIComponent() functions. See:
      http://xkr.us/articles/javascript/encode-compare/

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulf Paul Field
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: