From 7507867ca7de1186e898f1ea463b1e87040b8997 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 5 Jan 2019 17:08:54 +0000 Subject: [PATCH] Document makepathsafe() better --- core.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core.php b/core.php index 252bee4..bb1d8b6 100644 --- a/core.php +++ b/core.php @@ -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.