mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/tags: escape dots in search term and don't allow '.' and '..' as tags
This commit is contained in:
@ -163,7 +163,8 @@ class TagInputControl extends events.EventTarget {
|
||||
|
||||
addTagByName(name, source) {
|
||||
name = name.trim();
|
||||
if (!name) {
|
||||
// Tags `.` and `..` are not allowed, see https://github.com/rr-/szurubooru/pull/390
|
||||
if (!name || name == "." || name == "..") {
|
||||
return;
|
||||
}
|
||||
return Tag.get(name).then(
|
||||
|
Reference in New Issue
Block a user