diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-09-21 14:35:19 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-09-21 14:35:19 +0000 |
commit | db72cac175b5fe2280c5f1fe0e3a39b351aac94f (patch) | |
tree | ee7fd0165dd3a5300bddca57127c4b863478fd1f | |
parent | 7ae059ecfd9ade1215046bc20a1b2eb7de2328b5 (diff) | |
download | acf-postfix-0.2.3.tar.bz2 acf-postfix-0.2.3.tar.xz |
Remove spaces from start / end of new filenames, bumped to 0.2.3v0.2.3
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | postfix-model.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ APP_NAME=postfix PACKAGE=acf-$(APP_NAME) -VERSION=0.2.2 +VERSION=0.2.3 APP_DIST=\ postfix* \ 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 |