Permalink
Browse files

Allow additional characters in JFolder names: ()[]{}#$^+.'~`!@&=;,

  • Loading branch information...
1 parent d8c451c commit 1b53f91bcfb884f8302b94eb74ec813bdf541f93 @aaronschmitz committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/filesystem/folder.php
@@ -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);
}
}

0 comments on commit 1b53f91

Please sign in to comment.