summaryrefslogtreecommitdiff
path: root/services/tagservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/tagservice.php')
-rw-r--r--services/tagservice.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/tagservice.php b/services/tagservice.php
index ac30061..fba85fa 100644
--- a/services/tagservice.php
+++ b/services/tagservice.php
@@ -68,6 +68,8 @@ class TagService {
}
function renameTag($uId, $oldName, $newName) {
+ $newname = $this->normalize($newname);
+
$query = 'UPDATE `'. $this->getTableName() .'`';
$query.= ' SET tag="'.$newName.'"';
$query.= ' WHERE tag="'.$oldName.'"';