summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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