Skip to content

Commit 843dbc2

Browse files
authored
Merge pull request #251 from thirdweb-dev/np/allow_union
allow union query
2 parents fc76f7c + 8e0f056 commit 843dbc2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

insight

357 KB
Binary file not shown.

internal/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var allowedFunctions = map[string]struct{}{
4949
}
5050

5151
var disallowedPatterns = []string{
52-
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
52+
`(?i)\b(INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)`,
5353
}
5454

5555
// ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.

0 commit comments

Comments
 (0)