summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst@digdash.com>2025-04-02 17:44:00 +0200
committerJulian Hurst <julian.hurst@digdash.com>2025-04-02 17:44:00 +0200
commit620281a44db7f0d07e0a92e6511ac7df02ac7318 (patch)
tree117f894730d4a4dc6d9d78547c149c89e3be88a0 /main.go
parent5702d9fd74d19cc1b8ce9498d4e8bc448da9768e (diff)
downloadbox-620281a44db7f0d07e0a92e6511ac7df02ac7318.tar.gz
Use template.URL to avoid escaping
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 0556242..82f4e49 100644
--- a/main.go
+++ b/main.go
@@ -40,10 +40,10 @@ func serve(w http.ResponseWriter, token []byte, views ...string) {
}
if err := t.Execute(w, struct {
Token bool
- ProxyPrefix string
+ ProxyPrefix template.URL
}{
Token: token != nil,
- ProxyPrefix: os.Getenv("BOX_PROXY_PREFIX"),
+ ProxyPrefix: template.URL(os.Getenv("BOX_PROXY_PREFIX")),
}); err != nil {
log.Fatal(err)
}