new for loop successfull tested
This commit is contained in:
@@ -178,6 +178,7 @@ class Command: public QObject {
|
||||
return commands;
|
||||
}
|
||||
QStringList commaSeparatedList(QString value) {
|
||||
value=value.trimmed();
|
||||
if (!value.size()) return QStringList();
|
||||
switch (value.size()>1&&value.at(0)==value.at(value.size()-1)
|
||||
?value.at(0).toLatin1():'\0') {
|
||||
@@ -1830,7 +1831,8 @@ class ClientCertificate: public Command {
|
||||
if (cert.isNull()) throw NotACertificate(filename);
|
||||
sslConfig.setLocalCertificate(cert);
|
||||
filename = script->replacevars(_keyfile);
|
||||
QFile keyfile(filename);
|
||||
QFile keyfile(script->path()+filename);
|
||||
if (!keyfile.exists()) keyfile.setFileName(filename);
|
||||
if (!keyfile.exists() || !keyfile.open(QIODevice::ReadOnly))
|
||||
throw FileNotFound(filename);
|
||||
keyfile.open(QIODevice::ReadOnly);
|
||||
|
Reference in New Issue
Block a user