Add single-quote to dangerous chars
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ const PER_PAGE = 100
|
||||
*/
|
||||
function safeQuery(q) {
|
||||
let q2 = q.trim()
|
||||
if (q2.match(/[-./]/)) {
|
||||
if (q2.match(/[-./']/)) {
|
||||
q2 = `"${q2}"`
|
||||
}
|
||||
if (q2.match(/\+/)) {
|
||||
|
||||
Reference in New Issue
Block a user