Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.2.6
-
None
Description
Good afternoon, if you pass an invalid url ("igmp;//225.77.32.152;5000"), then QUrl returns isValid() == true , although it seems that this is an invalid url.
reproducable code,
#include <QCoreApplication> #include <QUrl> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); const QUrl url("igmp;//225.77.32.152:5000", QUrl::StrictMode); if (url.isValid()) { qDebug() << "url isValid"; } qDebug() << "scheme:" << url.scheme(); return 0; }
Results,
18:52:43: Starting /home/tmp/build-untitled-Desktop/untitled... url isValid scheme: "" 18:52:43: /home/tmp/build-untitled-Desktop/untitled exited with code 0