summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-09-21 14:35:19 +0000
committerTed Trask <ttrask01@yahoo.com>2009-09-21 14:35:19 +0000
commitdb72cac175b5fe2280c5f1fe0e3a39b351aac94f (patch)
treeee7fd0165dd3a5300bddca57127c4b863478fd1f
parent7ae059ecfd9ade1215046bc20a1b2eb7de2328b5 (diff)
downloadacf-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--Makefile2
-rw-r--r--postfix-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 196bc45..66488c4 100644
--- a/Makefile
+++ b/Makefile
@@ -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