From 029f777b23a93da3c7f8c62cd6deed5f357b9c60 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 12 Jul 2015 18:31:58 +0100 Subject: [PATCH] Allow forward slashes in page names --- core.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core.php b/core.php index cb9f202..a1db02e 100644 --- a/core.php +++ b/core.php @@ -89,7 +89,10 @@ else * * @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.