QSslCertificate::fromPath fix wildcard handling
authorMartin Petersson <Martin.Petersson@nokia.com>
Fri, 8 Jun 2012 08:39:37 +0000 (10:39 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Jul 2012 23:09:33 +0000 (01:09 +0200)
commit6c59cdecee42dad1e100857314d28a3d8279a164
tree834b54e0197a443d88ab056bfe4bac85128bb12a
parent41064f851591d9437baeda502b6e2504fee8f213
QSslCertificate::fromPath fix wildcard handling

The reqExp used to handle wildcards in the path was broken. So we
always searched the working directory and not the specified path.
Autotest where passing because of a hack used for Windows paths
where we removed the first two chars in the path string.

This fix will not use nativeSeparators thus removing the Windows hack
and fix the regExp to match wildcard chars.

Task-number: QTBUG-23573
Change-Id: I56fadbb67f25b8ce9c0f17cb6232e0bdb9148b1c
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/ssl/qsslcertificate.cpp
tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp