Shortcut link values are double URL-escaped

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.6.1
    • Affects Version/s: 2.5.4
    • Component/s: None

      At least some characters in a shortcut link are double url-escaped. For example, if you have a shortcut link set up like this:

      Key: niv
      URL: http://www.biblegateway.com/passage/?version=31&search=%s
      Default Alias: %s (NIV)
      

      And then enter something like this:

      \[Col 3:22-4:1@niv]
      

      The final URL generated in the link will look like this:

      http://www.biblegateway.com/passage/?version=31&search=Col+3%253A22-4%253A1
      

      What it should look like is this:

      http://www.biblegateway.com/passage/?version=31&search=Col+3%3A22-4%3A1
      

      The difference being the extra '25' in the incorrect version. '%25' is the escape value for '%'. '%3A' is the escape value for ':'. So what seems to be happening is that the '%s' value is being URL-escaped twice, which means that the '%' itself in the already-escaped value is being escaped. This causes understandable confusion at the other end. Fixing would be much appreciated.

              Assignee:
              Matt Ryall
              Reporter:
              David Peterson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: