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

QUrl::isValid() returns true for invalid URLs if the scheme is not http

    XMLWordPrintable

Details

    Description

      The following host name used is not valid because it contains an underscore:

      QUrl url("https://some_domain.tst/doc.html");
      qDebug() << url;
      qDebug() << url.isValid();
      

      returns:
      QUrl( "https:/doc.html" )
      true

      QUrl url("http://some_domain.tst/doc.html");
      qDebug() << url;
      qDebug() << url.isValid();
      

      returns:
      QUrl( "http:/doc.html" )
      false

      Attachments

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

        Activity

          People

            miknuut Mikko Knuutila (Inactive)
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes