Commit 6af60fa
committed
fix: prevent SQL injection in timezone handling
Apply timezone validation before executing SET TIME ZONE command
to prevent potential SQL injection vulnerabilities.
Changes:
- Import and use isValidTimeZone() validation
- Throw error for invalid timezone strings
- Maintain support for all legitimate timezone formats
The validation ensures that only safe timezone strings are used
in raw SQL execution while preserving functionality.1 parent 0ff6d94 commit 6af60fa
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
| |||
0 commit comments