projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d887a0
)
Don't do HTML escaping on text entered in the bug form
author
Magnus Hagander
<magnus@hagander.net>
Fri, 2 Dec 2011 15:38:42 +0000
(16:38 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Fri, 2 Dec 2011 15:38:42 +0000
(16:38 +0100)
The output is sent to an email - and escaping it breaks things like
using < and > characters in the bug report, which is quite normal...
templates/misc/bugmail.txt
patch
|
blob
|
blame
|
history
diff --git
a/templates/misc/bugmail.txt
b/templates/misc/bugmail.txt
index 1ee95811e8ab236ddb1e35ae6125112ab954f2c4..633bd6afd8c2b152ae313a1e9efb23f49e41ccdc 100644
(file)
--- a/
templates/misc/bugmail.txt
+++ b/
templates/misc/bugmail.txt
@@
-5,7
+5,7
@@
Logged by: {{bug.name|wordwrap:76}}
Email address: {{bug.email|wordwrap:76}}
PostgreSQL version: {{bug.pgversion|wordwrap:76}}
Operating system: {{bug.os|wordwrap:76}}
-Description: {{bug.shordesc|wordwrap:76}}
+Description: {{bug.shordesc|
safe|
wordwrap:76}}
-{{bug.details|wordwrap:76}}
+{{bug.details|
safe|
wordwrap:76}}