From af335a39f182631324cea90cdba85b200aa7fb2d Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 17 Oct 2014 11:06:49 +0200 Subject: [PATCH] Add PHPDoc about sanitization of "insertIfNotExist" Let's document this potential pitfall properly. --- lib/private/db/adapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/db/adapter.php b/lib/private/db/adapter.php index 6742ccdbb4..972008776f 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) {