This repository has been archived by the owner. It is now read-only.

Fix for issue 183 - allow additional characters in JFolder #1067

Merged
merged 2 commits into from Oct 9, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -661,7 +661,7 @@ public static function listFolderTree($path, $filter, $maxLevel = 3, $level = 0,
*/
public static function makeSafe($path)
{
- $regex = array('#[^A-Za-z0-9:_\\\/-]#');
+ $regex = array('#[^A-Za-z0-9_\\\/\(\)\[\]\{\}\#\$\^\+\.\'~`!@&=;,-]#');
return preg_replace($regex, '', $path);
}
}