From a911a62e1235aea3ac7a482b1071c67045c4328e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 16 Mar 2014 14:42:39 +0000 Subject: [PATCH] title can contain html --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 22560749..a80914df 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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