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 20:57:42 +0000 (22:57 +0200)
commitaa1008be162cb27da938cce93ba533f54d228869
tree7354fce9ffa0dcb6e2e159903234b617775514e4
parent61bf66635f5b50100aabc6e8ad11d62a21e47589
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