diff options
Diffstat (limited to 'postfix-model.lua')
-rw-r--r-- | postfix-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |