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

when QUrl::removeQueryItem (const QString & key), the corresponding '&' symbol is not removed.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4: Low
    • None
    • 4.8.5
    • Core: URL Handling
    • None

    Description

      e.g:

      QUrl url("http://1234567.com/");
      url.addQueryItem("first", "firstvalue");
      url.addQueryItem("second", "secondvalue");
      url.removeQueryItem("second");
      url.addQueryItem("second", "newsecondvalue");
      QString s = url.toString();
      

      value of s is : "http://1234567.com/?first=firstvalue&&second=newsecondvalue"
      yes, there is another one more &.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            liangzuoting Liang Zuoting
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes