From 9308f141fcd3266346803a17ba355e586899bb74 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 22 Dec 2018 16:28:42 +0100 Subject: [PATCH] Allow unsafe inline style on docs Our new docs build seems to put this in there, and only older docs were tested it seems. --- pgweb/docs/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgweb/docs/views.py b/pgweb/docs/views.py index b99adf59..6cfb1860 100644 --- a/pgweb/docs/views.py +++ b/pgweb/docs/views.py @@ -1,7 +1,7 @@ from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect from django.http import Http404 -from pgweb.util.decorators import login_required, allow_frames +from pgweb.util.decorators import login_required, allow_frames, content_sources from django.db.models import Q from django.conf import settings @@ -18,6 +18,7 @@ from models import DocPage from forms import DocCommentForm @allow_frames +@content_sources('style', "'unsafe-inline'") def docpage(request, version, filename): loaddate = None # Get the current version both to map the /current/ url, and to later -- 2.39.5