Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31223

QUrl::encodedQuery() not encoding properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.4
    • None

    Description

      Very simple: QUrl::encodedQuery is not encoding all the necessary characters.

      QUrl args;
      args.addQueryItem("0", "+");

      args.encodedQuery() return "0=+"

      Which is wrong, as '' is interpreted as a space. As both "%20" and '' are transformed into a space on the webserver backend. (Tested with PHP)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            sir-rogers Roger Weber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes