fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1f64352
)
escape author for history
author
Jan Szejko
<janek37@gmail.com>
Fri, 17 Feb 2017 15:49:53 +0000
(16:49 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 17 Feb 2017 15:49:53 +0000
(16:49 +0100)
apps/wiki/views.py
patch
|
blob
|
history
diff --git
a/apps/wiki/views.py
b/apps/wiki/views.py
index
1b16077
..
5128b56
100644
(file)
--- 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.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
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,
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") + ": " +
"date": localize(revision.created_at),
"revision": revision.pk,
"published": _("Published") + ": " +