From cddb6f6560244ae108b57b22419f4cb3c60e0655 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 7 Nov 2012 00:41:22 +0100 Subject: [PATCH] hardcode 'episodeTitle', 'seriesTitle' as allowed edit keys, fixes 1121 --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 60f56574..85dd1eb5 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -245,6 +245,8 @@ class Item(models.Model): self.data[key] = [ox.sanitize_html(t) for t in data[key]] elif ktype == '[string]': self.data[key] = [ox.escape_html(t) for t in data[key]] + elif key in ('episodeTitle', 'seriesTitle'): + self.data[key] = ox.escape_html(data[key]) elif isinstance(data[key], basestring): self.data[key] = ox.escape_html(data[key]) elif isinstance(data[key], list):