MTA:Eir/FileSystem/translator/setOutbreakEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ This function sets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory. ==Syntax== <syntaxhighlight lang="lua"> void translator.setOutbreakEnabled ( bool enabled ) </syntaxhighlight> ==Arguments== *'''enabled:''' value for the translator outbreak-policy ==Returns== This functio...") |
mNo edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
void translator | void translator:setOutbreakEnabled ( bool enabled ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 23:30, 16 January 2022
This function sets the outbreak-policy of a file translator. If outbreak is enabled then file path requests outside of the translator root are allowed. Otherwise the user can only access files that are accessible from inside the translator root directory.
Syntax
void translator:setOutbreakEnabled ( bool enabled )
Arguments
- enabled: value for the translator outbreak-policy
Returns
This function returns nil.
Example
-- TODO