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

Allow forward slashes in page names

This commit is contained in:
Starbeamrainbowlabs 2015-07-12 18:31:58 +01:00
parent d1da9e669c
commit 029f777b23

View file

@ -89,7 +89,10 @@ else
* *
* @details paths may only contain alphanumeric characters, spaces, underscores, and dashes * @details paths may only contain alphanumeric characters, spaces, underscores, and dashes
*/ */
function makepathsafe($string) { return preg_replace("/[^0-9a-zA-Z\_\-\ ]/i", "", $string); } function makepathsafe($string)
{
return preg_replace("/[^0-9a-zA-Z\_\-\ \/]/i", "", $string);
}
/* /*
* @summary Hides an email address from bots by adding random html entities. * @summary Hides an email address from bots by adding random html entities.