diff --git a/patch.py b/patch.py index 9b65ce1cf..7dcefc011 100644 --- a/patch.py +++ b/patch.py @@ -50,7 +50,7 @@ class FilePatchBase(object): def _process_filename(filename): filename = filename.replace('\\', '/') # Blacklist a few characters for simplicity. - for i in ('%', '$', '..', '\'', '"'): + for i in ('$', '..', '\'', '"', '<', '>', ':', '|', '?', '*'): if i in filename: raise UnsupportedPatchFormat( filename, 'Can\'t use \'%s\' in filename.' % i)