From cc9d639afb6390cc41daca46cb05c3c69c5d2f80 Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 16 Nov 2010 22:31:04 -0800 Subject: [PATCH] Expanded the filename filter for snapshot paths. --- src/com/sk89q/worldedit/snapshots/SnapshotRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sk89q/worldedit/snapshots/SnapshotRepository.java b/src/com/sk89q/worldedit/snapshots/SnapshotRepository.java index 23a4d733a..78c83e5a9 100644 --- a/src/com/sk89q/worldedit/snapshots/SnapshotRepository.java +++ b/src/com/sk89q/worldedit/snapshots/SnapshotRepository.java @@ -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; }