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:
parent
d1da9e669c
commit
029f777b23
1 changed files with 4 additions and 1 deletions
5
core.php
5
core.php
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue