forked from 0x2620/pandora
first round of input sanitization
This commit is contained in:
parent
b62b58a967
commit
67bc4475e9
7 changed files with 44 additions and 28 deletions
|
|
@ -139,7 +139,7 @@ def editPage(request):
|
|||
page, created = models.Page.objects.get_or_create(name=data['name'])
|
||||
if not created:
|
||||
page.log()
|
||||
page.text = data['text']
|
||||
page.text = ox.parse_html(data['text'])
|
||||
page.save()
|
||||
response = json_response({'name': page.name, 'text': page.text})
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue