aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/mailbox.html4
-rw-r--r--public/message.html2
2 files changed, 3 insertions, 3 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}}
diff --git a/public/message.html b/public/message.html
index cb9518b..fc97bf4 100644
--- a/public/message.html
+++ b/public/message.html
@@ -3,7 +3,7 @@
<h1>koushin</h1>
<p>
- <a href="/mailbox/{{.Mailbox.Name}}">Back</a>
+ <a href="/mailbox/{{.Mailbox.Name | pathescape}}">Back</a>
</p>
<h2>{{.Message.Envelope.Subject}}</h2>