title can contain html
This commit is contained in:
parent
9e74d03301
commit
a911a62e12
1 changed files with 1 additions and 1 deletions
|
@ -1166,7 +1166,7 @@ class Item(models.Model):
|
||||||
shutil.rmtree(base)
|
shutil.rmtree(base)
|
||||||
ox.makedirs(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 = self.path('torrent/%s' % filename)
|
||||||
base = os.path.abspath(os.path.join(settings.MEDIA_ROOT, base))
|
base = os.path.abspath(os.path.join(settings.MEDIA_ROOT, base))
|
||||||
size = 0
|
size = 0
|
||||||
|
|
Loading…
Reference in a new issue