Allow forward slashes in page names

This commit is contained in:
Starbeamrainbowlabs 2015-07-12 18:31:58 +01:00
parent d1da9e669c
commit 029f777b23
1 changed files with 4 additions and 1 deletions

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.