Skip to content

Commit bcaf1ca

Browse files
authored
whitelist concat function (#134)
### TL;DR Added support for the `concat` function in the allowed functions list. ### What changed? Added the `concat` function to the `allowedFunctions` map, enabling string concatenation operations. ### How to test? 1. Use the `concat` function in your queries or templates 2. Verify that the function executes without permission errors 3. Confirm that string concatenation works as expected ### Why make this change? String concatenation is a fundamental operation needed for data manipulation and string formatting. Adding the `concat` function provides users with the ability to combine strings dynamically within their queries or templates.
2 parents 313d5ab + f5c645f commit bcaf1ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/common/utils.go

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ var allowedFunctions = map[string]struct{}{
172172
"if": {},
173173
"toStartOfDay": {},
174174
"toDate": {},
175+
"concat": {},
175176
}
176177

177178
var disallowedPatterns = []string{

0 commit comments

Comments
 (0)