1
0
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:
Gani Georgiev 2023-06-26 12:53:15 +03:00
parent 4ab9c6f87f
commit 91bbbc4bdb

View File

@ -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":