ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [incubator-ponymail] branch master updated: Oops, typo
Date Thu, 05 Sep 2019 11:32:41 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git


The following commit(s) were added to refs/heads/master by this push:
     new b0499f1  Oops, typo
b0499f1 is described below

commit b0499f19f28e932a528aca5afba19ff982a7cb31
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Sep 5 12:32:28 2019 +0100

    Oops, typo
---
 site/api/mbox.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/site/api/mbox.lua b/site/api/mbox.lua
index 5d8223f..933819a 100644
--- a/site/api/mbox.lua
+++ b/site/api/mbox.lua
@@ -90,7 +90,7 @@ function handle(r)
     if get.list and get.date then
         local lid = ("<%s>"):format(get.list:gsub("@", "."):gsub("[<>]", ""))
         local flid = get.list:gsub("[.@]", "_")
-        local y, m = get.date:match("^(%d+)%-(%d+)%")
+        local y, m = get.date:match("^(%d+)%-(%d+)$")
         if not (y and m) then
             cross.contentType(r, "text/plain")
             r:puts("Wrong date format given!\n")


Mime
View raw message