Remove block on % in filename strings
According to Alam, supporting this shouldn't cause any issues.
This commit is contained in:
1 parent
2eedecb93a
commit
db7da456d2
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user