Permalink
Browse files

Merge pull request #1067 from aaronschmitz/foldernames

Fix for issue 183 - allow additional characters in JFolder
  • Loading branch information...
2 parents 059374e + 92f0c48 commit 3727079049694edb7e7bc5d3a6b91de129e019a4 @LouisLandry LouisLandry committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/filesystem/folder.php
@@ -656,7 +656,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);
}
}

0 comments on commit 3727079

Please sign in to comment.