Expanded the filename filter for snapshot paths.

This commit is contained in:
sk89q 2010-11-16 22:31:04 -08:00
parent bd87bd76a5
commit cc9d639afb

View File

@ -116,7 +116,7 @@ public class SnapshotRepository {
* @return whether it is a valid snapshot
*/
public boolean isValidSnapshot(File f) {
if (!f.getName().matches("[A-Za-z0-9_\\-,.\\[\\]\\(\\) ]{1,50}")) {
if (!f.getName().matches("^[A-Za-z0-9_\\- \\./\\\\'\\$@~!%\\^\\*\\(\\)\\[\\]\\+\\{\\},\\?]+$")) {
return false;
}