summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2010-05-26 07:55:07 (GMT)
committerZeno Albisser <zeno.albisser@nokia.com>2010-06-11 13:11:30 (GMT)
commit164f347aba7287407615223dc2219a016ebc8248 (patch)
tree6de505b2515cef40b8265486a6d0cbac0e9c5398
parent936fc54e313cfe8923ba94738e52a92adcf6ccf0 (diff)
downloadQt-164f347aba7287407615223dc2219a016ebc8248.zip
Qt-164f347aba7287407615223dc2219a016ebc8248.tar.gz
Qt-164f347aba7287407615223dc2219a016ebc8248.tar.bz2
Adjusted RegExp in QSslCertificate::fromPath()
Reviewed-by: Thiago Task-number: QTBUG-2706
-rw-r--r--src/network/ssl/qsslcertificate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp
index 31c5ed1..ed12e00 100644
--- a/src/network/ssl/qsslcertificate.cpp
+++ b/src/network/ssl/qsslcertificate.cpp
@@ -537,7 +537,7 @@ QList<QSslCertificate> QSslCertificate::fromPath(const QString &path,
// $, (,), *, +, ., ?, [, ,], ^, {, | and }.
int pos = -1;
if (syntax == QRegExp::Wildcard)
- pos = path.indexOf(QRegExp(QLatin1String("[^\\][\\*\\?\\[\\]]")));
+ pos = path.indexOf(QRegExp(QLatin1String("[\\*\\?\\[]")));
else if (syntax != QRegExp::FixedString)
pos = path.indexOf(QRegExp(QLatin1String("[^\\][\\$\\(\\)\\*\\+\\.\\?\\[\\]\\^\\{\\}\\|]")));
QString pathPrefix = path.left(pos); // == path if pos < 0