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

QUrl: setHost, setEncodedHost etc. fail when host contains spaces, special characters or % encodings

    XMLWordPrintable

Details

    Description

      test case:

          QUrl url("smb://My Computer");
          qDebug() << url.toString();
          QUrl url2;
          url2.setEncodedHost("smb://My%20Computer"); // space
          qDebug() << url2.toString();
          QUrl url3;
          url3.setEncodedHost("smb://My%F6Computer"); // Umlaut
          qDebug() << url3.toString();
      

      Also, there seems to be no auto test for setEncodedHost

      Attachments

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

        Activity

          People

            peter-har Peter Hartmann
            peter-har Peter Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes