Go to the source code of this file.
◆ CHECK_SECURE_PATH
#define CHECK_SECURE_PATH |
( |
|
L, |
|
|
|
path, |
|
|
|
write_required |
|
) |
| |
Value:
CHECK_SECURE_PATH_INTERNAL(L, path, write_required, NULL); \
}
static bool isSecure(lua_State *L)
Definition: s_security.cpp:414
◆ CHECK_SECURE_PATH_INTERNAL
#define CHECK_SECURE_PATH_INTERNAL |
( |
|
L, |
|
|
|
path, |
|
|
|
write_required, |
|
|
|
ptr |
|
) |
| |
Value:
throw LuaError(std::string(
"Mod security: Blocked attempted ") + \
(write_required ? "write to " : "read from ") + path); \
}
static bool checkPath(lua_State *L, const char *path, bool write_required, bool *write_allowed=NULL)
Definition: s_security.cpp:530
◆ CHECK_SECURE_PATH_POSSIBLE_WRITE
#define CHECK_SECURE_PATH_POSSIBLE_WRITE |
( |
|
L, |
|
|
|
path, |
|
|
|
ptr |
|
) |
| |
Value:
CHECK_SECURE_PATH_INTERNAL(L, path, false, ptr); \
}