hardcode 'episodeTitle', 'seriesTitle' as allowed edit keys, fixes 1121
This commit is contained in:
parent
caaff10884
commit
cddb6f6560
1 changed files with 2 additions and 0 deletions
|
@ -245,6 +245,8 @@ class Item(models.Model):
|
||||||
self.data[key] = [ox.sanitize_html(t) for t in data[key]]
|
self.data[key] = [ox.sanitize_html(t) for t in data[key]]
|
||||||
elif ktype == '[string]':
|
elif ktype == '[string]':
|
||||||
self.data[key] = [ox.escape_html(t) for t in data[key]]
|
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):
|
elif isinstance(data[key], basestring):
|
||||||
self.data[key] = ox.escape_html(data[key])
|
self.data[key] = ox.escape_html(data[key])
|
||||||
elif isinstance(data[key], list):
|
elif isinstance(data[key], list):
|
||||||
|
|
Loading…
Reference in a new issue