diff --git a/backend/app/api/handlers/v1/v1_ctrl_qrcode.go b/backend/app/api/handlers/v1/v1_ctrl_qrcode.go index a4352df..25f7c75 100644 --- a/backend/app/api/handlers/v1/v1_ctrl_qrcode.go +++ b/backend/app/api/handlers/v1/v1_ctrl_qrcode.go @@ -5,6 +5,7 @@ import ( "image/png" "io" "net/http" + "net/url" "github.com/hay-kot/homebox/backend/internal/web/adapters" "github.com/hay-kot/httpkit/errchain" @@ -43,7 +44,12 @@ func (ctrl *V1Controller) HandleGenerateQRCode() errchain.HandlerFunc { panic(err) } - qrc, err := qrcode.New(q.Data) + decodedStr, err := url.QueryUnescape(q.Data) + if err != nil { + return err + } + + qrc, err := qrcode.New(decodedStr) if err != nil { return err }