summary refs log tree commit diff homepage
path: root/templates/directory.html
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-28 12:17:25 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-28 12:17:25 +0900
commite405d3f244d074f00658e020795a90ec3f69add7 (patch)
tree6f83f87d024ec64596d87032dfe45e33d559f8b8 /templates/directory.html
parent4fa6f1621b406ce58b91a4ae9a58b392d78b7008 (diff)
downloadphylactery-e405d3f244d074f00658e020795a90ec3f69add7.tar.gz
Escape question marks in path
Fixes: https://todo.sr.ht/~cnx/phylactery/1
Diffstat (limited to 'templates/directory.html')
-rw-r--r--templates/directory.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/directory.html b/templates/directory.html
index 6fc35fa..a04637e 100644
--- a/templates/directory.html
+++ b/templates/directory.html
@@ -4,7 +4,7 @@
 <body>
   <main>
     <a href=../><p>../</p></a>{{range .Entries}}
-    <a href="./{{.}}"><p>{{.}}</p></a>{{end}}
+    <a href="./{{. | escape}}"><p>{{.}}</p></a>{{end}}
   </main>
 </body>
 </html>