diff options
author | Mika Havela <mika.havela@gmail.com> | 2009-08-10 10:04:36 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2009-08-10 10:04:36 +0000 |
commit | 4667ee82a89aca7e5187181713005abf1d22f4c6 (patch) | |
tree | 8ce12a0ac7a95666b2bf2f30b969a9e4041ad05f | |
parent | e2507e1affe8c092238f88f08a097413ef090e83 (diff) | |
download | acf-openvpn-4667ee82a89aca7e5187181713005abf1d22f4c6.tar.bz2 acf-openvpn-4667ee82a89aca7e5187181713005abf1d22f4c6.tar.xz |
Fixed bug that caused a file to be called myfileconf (without the . before conf)
-rw-r--r-- | openvpn-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua index c324353..3259f29 100644 --- a/openvpn-model.lua +++ b/openvpn-model.lua @@ -245,7 +245,7 @@ function create_config(config) elseif posix.stat(path) then success = false config.value.name.errtxt = "File already exists" - elseif not string.match(path,".*conf") then + elseif not string.match(path,".*%.conf") then success = false config.value.name.errtxt = "Filename must end with '.conf'" end |