small fixes

This commit is contained in:
2025-08-01 17:19:00 -03:00
parent 37de2f29e0
commit a4373f7254
2 changed files with 3 additions and 2 deletions

View File

@@ -188,8 +188,8 @@ func IsSafe(str string) bool {
return true
}
func safeRemove(L *lua.LState) int {
path := L.ToString(1)
func SafeRemove(L *lua.LState) int {
path := L.CheckString(1)
if !IsSafe(path) {
L.Push(lua.LFalse)
return 1