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

QUrl::encodedQuery() not encoding properly

XMLWordPrintable

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

      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)

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes