Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 435a026

Browse files
committed
common: Whitelist the "unicode" core SQLite function
1 parent 7b2caad commit 435a026

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/sqlite.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ type function string
2525
const (
2626
// Core functions: https://sqlite.org/lang_corefunc.html
2727
//fnLoadExtension function = "load_extension" // Loading extensions is definitely not allowed
28-
//fnUnicode function = "unicode" // Disabling, at least for now, as it might be possible to construct unsafe strings with it
2928
fnAbs function = "abs"
3029
fnChanges function = "changes"
3130
fnChar function = "char"
@@ -65,6 +64,7 @@ const (
6564
fnTrim function = "trim"
6665
fnTypeOf function = "typeof"
6766
fnUnhex function = "unhex"
67+
fnUnicode function = "unicode"
6868
fnUnlikely function = "unlikely"
6969
fnUpper function = "upper"
7070
fnZeroBlob function = "zeroblob"
@@ -227,6 +227,7 @@ var SQLiteFunctions = []function{
227227
fnTrim,
228228
fnTypeOf,
229229
fnUnhex,
230+
fnUnicode,
230231
fnUnlikely,
231232
fnUpper,
232233
fnZeroBlob,

0 commit comments

Comments
 (0)