A continuation of HomeBox the inventory and organization system built for the Home User
fix: ensure urls isn't encoded (#618)
Hayden13c437c41882
diff --git a/backend/app/api/handlers/v1/v1_ctrl_qrcode.go b/backend/app/api/handlers/v1/v1_ctrl_qrcode.goindex a4352dfc..25f7c75a 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}