Tapestry
  1. Tapestry
  2. TAPESTRY-977

XTile component incorrectly quotes request URLs

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.1.1
    • Component/s: Contrib
    • Labels:
      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/

        Activity

        Paul Field created issue -
        Andreas Andreou made changes -
        Field Original Value New Value
        Fix Version/s 4.0.3 [ 12310994 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.0.3 [ 12310994 ]
        Fix Version/s 4.1 [ 12310632 ]
        Jesse Kuhnert made changes -
        Fix Version/s 4.1 [ 12310632 ]
        Fix Version/s 4.1.1 [ 12312021 ]
        Jesse Kuhnert made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12372769 ] Default workflow, editable Closed status [ 12567775 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567775 ] jira [ 12590903 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Paul Field
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development