File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
{% extends sitebase.html %}
2
- {% autoescape None %}
3
2
{% block content%}
4
3
< h1 style ="text-align:center "> ERROR: CODE {{status_code}}!</ h1 >
5
- < h2 style ="text-align:center "> {{ error}}! </ h2 >
4
+ < h2 style ="text-align:center "> {% raw escape( error) %} </ h2 >
6
5
< p style ="text-align:center "> The error has been logged and will be looked at.</ p >
7
6
< p style ="
text-align:center "
> Need help? Send us an
< a href ="
mailto:[email protected] "
> email
</ a > .
</ p >
8
7
{% if is_admin %}
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ def test_public(self):
21
21
22
22
response = self .get ('/public/?study_id=100' )
23
23
self .assertEqual (response .code , 422 )
24
- self .assertIn ("Study 100 doesn' t exist" ,
24
+ self .assertIn ("Study 100 doesn' t exist" ,
25
25
response .body .decode ('ascii' ))
26
26
27
27
response = self .get ('/public/?artifact_id=100' )
28
28
self .assertEqual (response .code , 422 )
29
- self .assertIn ("Artifact 100 doesn' t exist" ,
29
+ self .assertIn ("Artifact 100 doesn' t exist" ,
30
30
response .body .decode ('ascii' ))
31
31
32
32
response = self .get ('/public/?artifact_id=1' )
@@ -58,7 +58,7 @@ def test_public(self):
58
58
59
59
response = self .get ('/public/?artifact_id=8' )
60
60
self .assertEqual (response .code , 422 )
61
- self .assertIn ("Artifact 8 doesn' t belong to a study" ,
61
+ self .assertIn ("Artifact 8 doesn' t belong to a study" ,
62
62
response .body .decode ('ascii' ))
63
63
64
64
You can’t perform that action at this time.
0 commit comments