mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-05-14 14:46:49 +02:00
added eager empty string check
This commit is contained in:
parent
4ab9c6f87f
commit
91bbbc4bdb
@ -113,6 +113,8 @@ func bindFormData(c echo.Context, i interface{}) error {
|
|||||||
// - any other string (empty string too) is left as it is
|
// - any other string (empty string too) is left as it is
|
||||||
func normalizeMultipartValue(raw string) any {
|
func normalizeMultipartValue(raw string) any {
|
||||||
switch raw {
|
switch raw {
|
||||||
|
case "":
|
||||||
|
return raw
|
||||||
case "true":
|
case "true":
|
||||||
return true
|
return true
|
||||||
case "false":
|
case "false":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user