mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-28 04:00:41 +00:00
Remove block on % in filename strings
According to Alam, supporting this shouldn't cause any issues.
This commit is contained in:
parent
2eedecb93a
commit
db7da456d2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue