Skip to content


Merge pull request #7351 from m-kuhn/auth_server_update_config
Browse files Browse the repository at this point in the history
Allow updating SSL cert custom configuration
  • Loading branch information
m-kuhn committed Jul 3, 2018
2 parents 045b88e + 85b382c commit 76f574a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/auth/qgsauthmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ bool QgsAuthManager::storeSslCertCustomConfig( const QgsAuthConfigSslServer &con
QString certpem( cert.toPem() );

QSqlQuery query( authDatabaseConnection() );
query.prepare( QString( "INSERT INTO %1 (id, host, cert, config) "
query.prepare( QString( "INSERT OR REPLACE INTO %1 (id, host, cert, config) "
"VALUES (:id, :host, :cert, :config)" ).arg( authDatabaseServersTable() ) );

query.bindValue( QStringLiteral( ":id" ), id );
Expand Down

0 comments on commit 76f574a

Please sign in to comment.