diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-03 17:31:53 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-03 17:31:53 +0100 |
commit | a4729060bedd45481726861c491d5061e90ffefa (patch) | |
tree | d9ee85915912c2186162e5ae737f89d3a5751549 /public/mailbox.html | |
parent | 48d6d5d227a4d55d80f9f2a74c1242cafafab7ab (diff) | |
download | alps-a4729060bedd45481726861c491d5061e90ffefa.tar.gz alps-a4729060bedd45481726861c491d5061e90ffefa.zip |
Escape mailbox names in URLs
Closes: https://todo.sr.ht/~sircmpwn/koushin/14
Diffstat (limited to 'public/mailbox.html')
-rw-r--r-- | public/mailbox.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/mailbox.html b/public/mailbox.html index 303bdb4..d8c7209 100644 --- a/public/mailbox.html +++ b/public/mailbox.html @@ -11,14 +11,14 @@ <p>Mailboxes:</p> <ul> {{range .Mailboxes}} - <li><a href="/mailbox/{{.Name}}">{{.Name}}</a></li> + <li><a href="/mailbox/{{.Name | pathescape}}">{{.Name}}</a></li> {{end}} </ul> <p>Messages:</p> <ul> {{range .Messages}} - <li><a href="/message/{{$.Mailbox.Name}}/{{.Uid}}?part={{.TextPartName}}"> + <li><a href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}"> {{.Envelope.Subject}} </a></li> {{end}} |