Skip to content

Commit

Permalink
Allow additional characters in JFolder names: ()[]{}#$^+.'~`!@&=;,
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronschmitz committed Mar 29, 2012
1 parent d8c451c commit 1b53f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/filesystem/folder.php
Expand Up @@ -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.