1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

Document makepathsafe() better

This commit is contained in:
Starbeamrainbowlabs 2019-01-05 17:08:54 +00:00
parent 4bf7881e5c
commit 7507867ca7
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -333,9 +333,12 @@ function check_subpage_parents($pagename)
}
/**
* Makes a path safe.
* Paths may only contain alphanumeric characters, spaces, underscores, and
* dashes.
* Makes a path (or page name) safe.
* A safe path / page name may not contain:
* Forward-slashes at the beginning
* Multiple dots in a row
* Odd characters (e.g. ?%*:|"<>() etc.)
* A safe path may, however, contain unicode characters such as éôà etc.
* @package core
* @param string $string The string to make safe.
* @return string A safe version of the given string.