Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-435

Add a tool to sanitize query string

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2-milestone-1
    • Component/s: Velocity
    • Labels:
      None
    • Tests:
      Unit
    • Similar issues:

      Description

      Right now, we don't have any tool to sanitize some query string that would be put inserted into an url. As this is needed in many places, we could add the following method to escapetool:

      String url(Map<String, ?>)

      that would create a safe and correctly escaped query String from a map of parameters.
      See the discussion on https://github.com/xwiki/xwiki-platform/pull/134 for more details.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thomas_delafosse Thomas Delafosse
              Reporter:
              thomas_delafosse Thomas Delafosse
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: