fix illegal check thanks to kostas

This commit is contained in:
Damien Elmes 2012-04-05 03:50:03 +09:00
parent 7553573304
commit 5c59f6a558
2 changed files with 1 additions and 2 deletions

View file

@ -247,7 +247,7 @@ If the same name exists, compare checksums."""
csum = checksum(data)
name = meta[i.filename]
# can we store the file on this system?
if self.illegal(i.filename):
if self.illegal(name):
continue
# save file
open(name, "wb").write(data)

View file

@ -461,7 +461,6 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
return delay*60
def _lrnConf(self, card):
conf = self._cardConf(card)
if card.type == 2:
return self._lapseConf(card)
else: