Fixing security vulnerability with Qt 4.8.5+ and PostgreSQL.
authorMarcus Eggenberger <egs@quassel-irc.org>
Thu, 10 Oct 2013 11:26:39 +0000 (13:26 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Thu, 10 Oct 2013 21:19:31 +0000 (23:19 +0200)
commit27f6692cfc3bd2e873e01096e1197e1dca07b36a
tree53bf9a762d721490a8bd92fe9a9807023cd9a959
parent84da760454072f627459ba503301947d2ae427ae
Fixing security vulnerability with Qt 4.8.5+ and PostgreSQL.

Properly detects whether Qt performs slash escaping in SQL queries or
not, and then configures PostgreSQL accordingly. This bug was a
introduced due to a bugfix in Qt 4.8.5 disables slash escaping when
binding queries: https://bugreports.qt-project.org/browse/QTBUG-30076
Thanks to brot and Tucos.

[Fixes #1244]
src/core/abstractsqlstorage.cpp
src/core/abstractsqlstorage.h
src/core/postgresqlstorage.cpp
src/core/postgresqlstorage.h