Remove block on % in filename strings

According to Alam, supporting this shouldn't cause any issues.
This commit is contained in:
wolfy852 2016-01-29 01:38:41 -06:00
parent 2eedecb93a
commit db7da456d2

View file

@ -184,7 +184,7 @@ static int io_open (lua_State *L) {
} }
} }
if (strstr(filename, "..") || strchr(filename, ':') || StartsWith(filename, "\\") if (strstr(filename, "..") || strchr(filename, ':') || StartsWith(filename, "\\")
|| StartsWith(filename, "/") || strchr(filename, '%') || !pass) || StartsWith(filename, "/") || !pass)
{ {
luaL_error(L,"access denied to %s", filename); luaL_error(L,"access denied to %s", filename);
return pushresult(L,0,filename); return pushresult(L,0,filename);