diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-17 11:06:49 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-17 11:06:49 +0200 |
commit | af335a39f182631324cea90cdba85b200aa7fb2d (patch) | |
tree | a1d16f70a62f4f687814d0cf056c7ca65d8a5112 | |
parent | 263dc70bfdf28446b0f7e9162de205caaf55d257 (diff) | |
download | nextcloud-server-af335a39f182631324cea90cdba85b200aa7fb2d.tar.gz nextcloud-server-af335a39f182631324cea90cdba85b200aa7fb2d.zip |
Add PHPDoc about sanitization of "insertIfNotExist"
Let's document this potential pitfall properly.
-rw-r--r-- | lib/private/db/adapter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/adapter.php b/lib/private/db/adapter.php index 6742ccdbb45..972008776f6 100644 --- a/lib/private/db/adapter.php +++ b/lib/private/db/adapter.php @@ -42,7 +42,7 @@ class Adapter { /** * insert the @input values when they do not exist yet * @param string $table name - * @param array $input key->value pairs + * @param array $input key->value pair, key has to be sanitized properly * @return int count of inserted rows */ public function insertIfNotExist($table, $input) { |