escape titles
This commit is contained in:
parent
55b26bdb19
commit
000d913da1
1 changed files with 4 additions and 2 deletions
|
@ -175,9 +175,11 @@ class Imdb(models.Model):
|
||||||
data['links'] = self.links()
|
data['links'] = self.links()
|
||||||
data['posters'] = self.posters(request)
|
data['posters'] = self.posters(request)
|
||||||
if 'title' in data:
|
if 'title' in data:
|
||||||
data['title'] = ox.sanitize_html(data['title'])
|
data['title'] = ox.escape_html(data['title'])
|
||||||
|
if 'originalTitle' in data:
|
||||||
|
data['originalTitle'] = ox.escape_html(data['originalTitle'])
|
||||||
if 'alternativeTitles' in data:
|
if 'alternativeTitles' in data:
|
||||||
data['alternativeTitles'] = [(ox.sanitize_html(a[0]), a[1]) for a in data['alternativeTitles']]
|
data['alternativeTitles'] = [(ox.escape_html(a[0]), a[1]) for a in data['alternativeTitles']]
|
||||||
if 'connections' in data:
|
if 'connections' in data:
|
||||||
for type in data['connections']:
|
for type in data['connections']:
|
||||||
for c in data['connections'][type]:
|
for c in data['connections'][type]:
|
||||||
|
|
Loading…
Reference in a new issue