From db7da456d2d330f3c116e69017a61f3c82012614 Mon Sep 17 00:00:00 2001
From: wolfy852 <wolfy852@hotmail.com>
Date: Fri, 29 Jan 2016 01:38:41 -0600
Subject: [PATCH] Remove block on % in filename strings

According to Alam, supporting this shouldn't cause any issues.
---
 src/blua/liolib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/blua/liolib.c b/src/blua/liolib.c
index 27ff74492e..a9e71f74a6 100644
--- a/src/blua/liolib.c
+++ b/src/blua/liolib.c
@@ -184,7 +184,7 @@ static int io_open (lua_State *L) {
 		}
 	}
 	if (strstr(filename, "..") || strchr(filename, ':') || StartsWith(filename, "\\")
-		|| StartsWith(filename, "/") || strchr(filename, '%') || !pass)
+		|| StartsWith(filename, "/") || !pass)
 	{
 		luaL_error(L,"access denied to %s", filename);
 		return pushresult(L,0,filename);
-- 
GitLab