From db72cac175b5fe2280c5f1fe0e3a39b351aac94f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 21 Sep 2009 14:35:19 +0000 Subject: Remove spaces from start / end of new filenames, bumped to 0.2.3 --- postfix-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'postfix-model.lua') diff --git a/postfix-model.lua b/postfix-model.lua index 32eb2ce..b37feb4 100644 --- a/postfix-model.lua +++ b/postfix-model.lua @@ -89,7 +89,7 @@ end function createfile(newfile) newfile.errtxt = "Failed to create file" - local path = newfile.value.filename.value + local path = string.match(newfile.value.filename.value, "^%s*(.*%S)%s*$") or "" if not string.find(path, "/") then path = baseurl..path end -- cgit v1.2.3