mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-16 20:01:35 +01:00
Don't escape the name when doing the exact matching for tag (#13533)
Don't escape the name when doing the exact matching for tag Fixes #13106 Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
eca3de3489
commit
def782b6f8
@ -335,7 +335,7 @@ func setTagQuery(qs beegoorm.QuerySeter, query *q.Query) (beegoorm.QuerySeter, e
|
||||
sql := fmt.Sprintf(`IN (
|
||||
SELECT DISTINCT art.id FROM artifact art
|
||||
JOIN tag ON art.id=tag.artifact_id
|
||||
WHERE tag.name = '%s')`, orm.Escape(s))
|
||||
WHERE tag.name = '%s')`, s)
|
||||
qs = qs.FilterRaw("id", sql)
|
||||
return qs, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user