From 4667ee82a89aca7e5187181713005abf1d22f4c6 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 10 Aug 2009 10:04:36 +0000 Subject: Fixed bug that caused a file to be called myfileconf (without the . before conf) --- openvpn-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openvpn-model.lua') 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 -- cgit v1.2.3