mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Protect against cypher injection vulnerability
- following @roschaefer PR review suggestion
This commit is contained in:
parent
7564908456
commit
715261238a
@ -40,8 +40,8 @@ export default {
|
||||
default:
|
||||
orderByClause = ''
|
||||
}
|
||||
const offset = args.offset ? `SKIP ${args.offset}` : ''
|
||||
const limit = args.first ? `LIMIT ${args.first}` : ''
|
||||
const offset = args.offset && typeof args.offset === 'number' ? `SKIP ${args.offset}` : ''
|
||||
const limit = args.first && typeof args.first === 'number' ? `LIMIT ${args.first}` : ''
|
||||
try {
|
||||
const cypher = `
|
||||
MATCH (resource {deleted: false, disabled: false})-[notification:NOTIFIED]->(user:User {id:$id})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user