Skip to content

Commit b5f9cad

Browse files
author
Richard Jones
committed
include some additional docs
1 parent 679d982 commit b5f9cad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

doc/upgrading.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@ permissions from the default distribution, you should check that
2222
"Create" permissions exist for all properties you want users to be able
2323
to create.
2424

25+
Fixing some potential security holes
26+
------------------------------------
27+
28+
Some HTML templates were found to have formatting security problems:
29+
30+
``html/page.html``::
31+
32+
-tal:replace="request/user/username">username</span></b><br>
33+
+tal:replace="python:request.user.username.plain(escape=1)">username</span></b><br>
34+
35+
``html/_generic.help-list.html``::
36+
37+
-tal:content="structure python:item[prop]"></label>
38+
+tal:content="python:item[prop]"></label>
39+
40+
The lines marked "+" should be added and lines marked "-" should be
41+
deleted (minus the "+"/"-" signs).
42+
43+
2544
Migrating from 1.4.x to 1.4.11
2645
==============================
2746

@@ -68,6 +87,12 @@ assign it to the Anonymous role (replacing any previously assigned
6887
The lines marked "+" should be added and lines marked "-" should be
6988
deleted (minus the "+"/"-" signs).
7089

90+
You should also modify the ``html/page.py`` template to change the
91+
permission tested there::
92+
93+
-tal:condition="python:request.user.hasPermission('Create', 'user')"
94+
+tal:condition="python:request.user.hasPermission('Register', 'user')"
95+
7196

7297
Generic class editor may now restore retired items
7398
--------------------------------------------------

0 commit comments

Comments
 (0)