title can contain html

This commit is contained in:
j 2014-03-16 14:42:39 +00:00
parent 9e74d03301
commit a911a62e12

View file

@ -1166,7 +1166,7 @@ class Item(models.Model):
shutil.rmtree(base)
ox.makedirs(base)
filename = utils.safe_filename(self.get('title'))
filename = utils.safe_filename(ox.decode_html(self.get('title')))
base = self.path('torrent/%s' % filename)
base = os.path.abspath(os.path.join(settings.MEDIA_ROOT, base))
size = 0