aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IDBConnection.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-02-16 10:23:59 +0000
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-02-17 21:38:15 +0100
commitd7590a6190cba237455b3e2b254b6bf0b8386855 (patch)
treea3ca289181cdd7fcd33e2b8acf873ae3e43c1d43 /lib/public/IDBConnection.php
parenta649dff1795f6df7e70742bea5e45265903476d4 (diff)
downloadnextcloud-server-d7590a6190cba237455b3e2b254b6bf0b8386855.tar.gz
nextcloud-server-d7590a6190cba237455b3e2b254b6bf0b8386855.zip
Add expression taint source and sanitizer
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/public/IDBConnection.php')
-rw-r--r--lib/public/IDBConnection.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php
index 943ad1b8601..3d2d83aa828 100644
--- a/lib/public/IDBConnection.php
+++ b/lib/public/IDBConnection.php
@@ -97,6 +97,8 @@ interface IDBConnection {
* @return IPreparedStatement The prepared statement.
* @since 6.0.0
* @throws Exception since 21.0.0
+ *
+ * @psalm-taint-sink sql $sql
*/
public function prepare($sql, $limit = null, $offset = null): IPreparedStatement;
@@ -112,6 +114,8 @@ interface IDBConnection {
* @return IResult The executed statement.
* @since 8.0.0
* @throws Exception since 21.0.0
+ *
+ * @psalm-taint-sink sql $sql
*/
public function executeQuery(string $sql, array $params = [], $types = []): IResult;
@@ -129,6 +133,8 @@ interface IDBConnection {
* @throws Exception since 21.0.0
*
* @deprecated 21.0.0 use executeStatement
+ *
+ * @psalm-taint-sink sql $sql
*/
public function executeUpdate(string $sql, array $params = [], array $types = []): int;
@@ -144,6 +150,8 @@ interface IDBConnection {
* @return int The number of affected rows.
* @since 21.0.0
* @throws Exception since 21.0.0
+ *
+ * @psalm-taint-sink sql $sql
*/
public function executeStatement($sql, array $params = [], array $types = []): int;
@@ -318,6 +326,8 @@ interface IDBConnection {
* @param string $table table name without the prefix
* @throws Exception since 21.0.0
* @since 8.0.0
+ *
+ * @psalm-taint-sink sql $table
*/
public function dropTable(string $table): void;