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:
@ -187,7 +187,7 @@ function arraysDiffer(source1, source2, orderImportant) {
|
||||
}
|
||||
|
||||
function escapeSearchTerm(text) {
|
||||
return text.replace(/([a-z_-]):/g, "$1\\:");
|
||||
return text.replace(/([a-z_-]):/g, "$1\\:").replace(/\./g, "\\.");
|
||||
}
|
||||
|
||||
function dataURItoBlob(dataURI) {
|
||||
|
Reference in New Issue
Block a user