You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2017/03/18 23:32:29 UTC
incubator-ponymail git commit: Bug: source.lua does not specify the
charset
Repository: incubator-ponymail
Updated Branches:
refs/heads/master 9bacd0e53 -> 0783a476d
Bug: source.lua does not specify the charset
This fixes #367
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/0783a476
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/0783a476
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/0783a476
Branch: refs/heads/master
Commit: 0783a476d0488b40b363691b62f6988be2ca8d6d
Parents: 9bacd0e
Author: Sebb <se...@apache.org>
Authored: Sat Mar 18 23:32:05 2017 +0000
Committer: Sebb <se...@apache.org>
Committed: Sat Mar 18 23:32:05 2017 +0000
----------------------------------------------------------------------
CHANGELOG.md | 1 +
site/api/source.lua | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/0783a476/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7d25908..0c05ad4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -141,6 +141,7 @@
- Add unsubscribe button (#362)
- Bug: invalid style setting: overflow:hide => overflow:hidden (#364)
- Bug: wordcloud.js logs to the console (#363)
+- Bug: source.lua does not specify the charset (#367)
## CHANGES in 0.9b:
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/0783a476/site/api/source.lua
----------------------------------------------------------------------
diff --git a/site/api/source.lua b/site/api/source.lua
index 3934b2b..407d631 100644
--- a/site/api/source.lua
+++ b/site/api/source.lua
@@ -24,7 +24,9 @@ local cross = require 'lib/cross'
local utils = require 'lib/utils'
function handle(r)
- cross.contentType(r, "text/plain")
+ -- content is currently utf-8, see #367
+ -- TODO this may need to be adjusted when #366 is fixed
+ cross.contentType(r, "text/plain; charset=utf-8")
local get = r:parseargs()
-- get the parameter (if any) and tidy it up
local eid = (get.id or r.path_info):gsub("\"", ""):gsub("/", "")