summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e9a4231)
Fix possible issue with special chars on #3139
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
$label = $duplicates['LOWER(label)'];
// Retrieve all duplicate tags for a given tag
$label = $duplicates['LOWER(label)'];
// Retrieve all duplicate tags for a given tag
- $tags = $this->connection->query('
+ $tags = $this->connection->createQuery('
SELECT id
FROM ' . $this->getTable('tag') . "
SELECT id
FROM ' . $this->getTable('tag') . "
- WHERE LOWER(label) = '" . $label . "'
+ WHERE LOWER(label) = :label
+ $tags->setParameter('label', $label);
$tags->execute();
$first = true;
$tags->execute();
$first = true;