mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-05-14 06:36:38 +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
|
||||
func normalizeMultipartValue(raw string) any {
|
||||
switch raw {
|
||||
case "":
|
||||
return raw
|
||||
case "true":
|
||||
return true
|
||||
case "false":
|
||||
|
Loading…
x
Reference in New Issue
Block a user