Skip to content
Snippets Groups Projects
Commit db7da456 authored by wolfs's avatar wolfs
Browse files

Remove block on % in filename strings

According to Alam, supporting this shouldn't cause any issues.
parent 2eedecb9
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment