summaryrefslogtreecommitdiffstats
path: root/templates/wormhole.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-11-10 22:31:03 -0800
committerRose Hogenson <rosehogenson@posteo.net>2025-11-10 22:31:03 -0800
commita14f5d08c264637639d518267a1397e137823fcf (patch)
treefdd9b146a34f21b9bb9b38c75fb5f965eeb67be8 /templates/wormhole.html.template
parent7ebfd2d33571b662a4997004cdba53f220631e8b (diff)
downloadroseh.moe-a14f5d08c264637639d518267a1397e137823fcf.tar.zst
Validate the QR code
Since the qr code is generated by a 3rd party dependency that I probably won't update, let's make sure to only pass it trusted input.
Diffstat (limited to 'templates/wormhole.html.template')
-rw-r--r--templates/wormhole.html.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template
index ad23b57..eb423ca 100644
--- a/templates/wormhole.html.template
+++ b/templates/wormhole.html.template
@@ -12,7 +12,7 @@
</li>
<li>
<p>Visit this URL <a href="/wormhole/{{.Hole}}">{{.Self}}/wormhole/{{.Hole}}</a> or scan QR code:</p>
- <img src="/wormhole/{{.Hole}}/qr.png" alt="QR code for {{.Self}}/wormhole/{{.Hole}}">
+ <img src="/wormhole/{{.Hole}}/qr.png?s={{.Sig}}" alt="QR code for {{.Self}}/wormhole/{{.Hole}}">
</li>
<li>
<label for="submit">Click here:</label>