Skip to content

Commit

Permalink
MDL-75237 core: improve PARAM_SAFEPATH docs
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and Jenkins committed Aug 12, 2022
1 parent 2f70b32 commit a50c80b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@
define('PARAM_SAFEDIR', 'safedir');

/**
* PARAM_SAFEPATH - several PARAM_SAFEDIR joined by "/", suitable for include() and require(), plugin paths, etc.
* PARAM_SAFEPATH - several PARAM_SAFEDIR joined by "/", suitable for include() and require(), plugin paths
* and other references to Moodle code files.
*
* This is NOT intended to be used for absolute paths or any user uploaded files.
*/
define('PARAM_SAFEPATH', 'safepath');

Expand Down

0 comments on commit a50c80b

Please sign in to comment.