diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-14 17:04:40 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-15 22:42:40 (GMT) |
commit | e9a59ff4f650d878fd79fed1f605f3f4e9120d35 (patch) | |
tree | fbe4f71381c380f295a959fac6c5ce72a62ba20c /src/gui/text | |
parent | 2e3d004ba736f5c77614feeaf3594217217bd29e (diff) | |
download | Qt-e9a59ff4f650d878fd79fed1f605f3f4e9120d35.zip Qt-e9a59ff4f650d878fd79fed1f605f3f4e9120d35.tar.gz Qt-e9a59ff4f650d878fd79fed1f605f3f4e9120d35.tar.bz2 |
Use case-insensitive comparison for the "data" scheme in URLs
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qtextdocument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index afba678..c7a9756 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -1947,7 +1947,7 @@ QVariant QTextDocument::loadResource(int type, const QUrl &name) #endif // handle data: URLs - if (r.isNull() && name.scheme() == QLatin1String("data")) + if (r.isNull() && name.scheme().compare(QLatin1String("data"), Qt::CaseInsensitive) == 0) r = qDecodeDataUrl(name).second; // if resource was not loaded try to load it here |