Fix incorrect capitalisation

master
ANAND 2019-01-17 17:19:59 +05:30 committed by rubenwardy
parent d1986dcfa7
commit 9479d5cbc1
1 changed files with 2 additions and 2 deletions

View File

@ -91,11 +91,11 @@ local ie = minetest.request_insecure_environment()
ie.os.execute(("path/to/prog %d"):format(3)) ie.os.execute(("path/to/prog %d"):format(3))
``` ```
`String.format` is a function in the global shared table `String`. `string.format` is a function in the global shared table `string`.
A malicious mod could override this function and pass stuff to os.execute: A malicious mod could override this function and pass stuff to os.execute:
```lua ```lua
String.format = function() string.format = function()
return "xdg-open 'http://example.com'" return "xdg-open 'http://example.com'"
end end
``` ```