File tree 2 files changed +2
-2
lines changed
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 @@ -178,7 +178,7 @@ var disallowedPatterns = []string{
178
178
`(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)` ,
179
179
}
180
180
181
- // validateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
181
+ // ValidateQuery checks the query for disallowed patterns and ensures only allowed functions are used.
182
182
func ValidateQuery (query string ) error {
183
183
// Check for disallowed patterns
184
184
for _ , pattern := range disallowedPatterns {
You can’t perform that action at this time.
0 commit comments