Skip to content

Commit

Permalink
Simplify, blanket escaping all HTML poses issues and we just need the…
Browse files Browse the repository at this point in the history
… quotes
  • Loading branch information
Humbedooh authored Jan 20, 2020
1 parent f62d78d commit a65a09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/api/email.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function handle(r)
-- If we can access this email, ...
if aaa.canAccessDoc(r, doc, account) then
-- Because we allow quotes in message-IDs, we need to escape for standard UI.
doc.tid = r:escape_html(doc.request_id)
doc.mid = r:escape_html(doc.mid)
doc.tid = doc.request_id:gsub('"', '%%22')
doc.mid = doc.mid:gsub('"', '%%22')

-- Are we in fact looking for an attachment inside this email?
if get.attachment then
Expand Down

0 comments on commit a65a09c

Please sign in to comment.