Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
af335a39
Commit
af335a39
authored
Oct 17, 2014
by
Lukas Reschke
Browse files
Add PHPDoc about sanitization of "insertIfNotExist"
Let's document this potential pitfall properly.
parent
263dc70b
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/private/db/adapter.php
View file @
af335a39
...
...
@@ -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 pair
s
* @param array $input key->value pair
, key has to be sanitized properly
* @return int count of inserted rows
*/
public
function
insertIfNotExist
(
$table
,
$input
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment