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) {
130130}
131131
132132func 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
134134 chainId := c .Param ("chainId" )
135135 chainIdInt , err := strconv .ParseUint (chainId , 10 , 64 )
136136 if err != nil {
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ var disallowedPatterns = []string{
178178 `(?i)\b(UNION|INSERT|DELETE|UPDATE|DROP|CREATE|ALTER|TRUNCATE|EXEC|;|--)` ,
179179}
180180
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.
182182func ValidateQuery (query string ) error {
183183 // Check for disallowed patterns
184184 for _ , pattern := range disallowedPatterns {
You can’t perform that action at this time.
0 commit comments