X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/31006b86a2e9883d8a4c5fe18128821b325773ab..7a7cae9f01c291219f3d81678fb03cf37e8091d2:/apps/wiki/views.py diff --git a/apps/wiki/views.py b/apps/wiki/views.py index 1b16077f..5128b569 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -15,6 +15,7 @@ from django.middleware.gzip import GZipMiddleware from django.utils.decorators import decorator_from_middleware from django.utils.encoding import smart_unicode from django.utils.formats import localize +from django.utils.html import escape from django.utils.translation import ugettext as _ from django.views.decorators.http import require_POST from django.shortcuts import get_object_or_404, render @@ -41,7 +42,7 @@ def get_history(document): revisions.append({ "version": i + 1, "description": revision.description, - "author": revision.author_str(), + "author": escape(revision.author_str()), "date": localize(revision.created_at), "revision": revision.pk, "published": _("Published") + ": " +