mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 06:50:25 +02:00
allow invalid utf8 characters when marshalizing json responses
This commit is contained in:
1 parent
50f5f83ace
commit
756b326bfa
9 files changed
+57
-20
No files matched your search
@@ -50,6 +50,8 @@ func (l *Log) DBExport(app App) (map[string]any, error) {
|
||||
result["message"] = l.Message
|
||||
}
|
||||
|
||||
// @todo once added in the standard library consider replacing with
|
||||
// WithByteLimit and WithDepthLimit as suggested in https://github.com/golang/go/issues/56733
|
||||
if len(l.Data) == 0 {
|
||||
result["data"] = l.Data
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user