Skip to content
Snippets Groups Projects
Unverified Commit 98b4717c authored by かっこかり's avatar かっこかり Committed by GitHub
Browse files

fix(backend): SQLのサニタイズを強化 (#14920)


* Fix code scanning alert no. 28: Incomplete string escaping or encoding (MisskeyIO#800)

Co-authored-by: default avatarCopilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
(cherry picked from commit 443335c662b14f609d6a81a8f3807e95709aebc1)

* ✌️



---------

Co-authored-by: default avatarあわわわとーにゅ <17376330+u1-liquid@users.noreply.github.com>
parent 8a4ce16e
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,5 @@
*/
export function sqlLikeEscape(s: string) {
return s.replace(/([%_])/g, '\\$1');
return s.replace(/([\\%_])/g, '\\$1');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment