File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func ParseQueryParams(r *http.Request) (QueryParams, error) {
130
130
}
131
131
132
132
func GetChainId (c * gin.Context ) (* big.Int , error ) {
133
- // TODO: check chainId agains the chain-service to ensure it's valid
133
+ // TODO: check chainId against the chain-service to ensure it's valid
134
134
chainId := c .Param ("chainId" )
135
135
chainIdInt , err := strconv .ParseUint (chainId , 10 , 64 )
136
136
if err != nil {
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ var disallowedPatterns = []string{
176
176
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)` ,
177
177
}
178
178
179
- // validateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
179
+ // ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
180
180
func ValidateQuery (query string ) error {
181
181
// Check for disallowed patterns
182
182
for _ , pattern := range disallowedPatterns {
You can’t perform that action at this time.
0 commit comments