← Back to team overview

openerp-community team mailing list archive

lp:~openerp-community/openobject-server/fix-1130010-toxml-escape-quot into lp:openobject-server

 

Niels Huylebroeck has proposed merging lp:~openerp-community/openobject-server/fix-1130010-toxml-escape-quot into lp:openobject-server.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1130010 in OpenERP Server: "wrong xml escaping in pdf reports"
  https://bugs.launchpad.net/openobject-server/+bug/1130010

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-server/fix-1130010-toxml-escape-quot/+merge/175238
-- 
https://code.launchpad.net/~openerp-community/openobject-server/fix-1130010-toxml-escape-quot/+merge/175238
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-server/fix-1130010-toxml-escape-quot.
=== modified file 'openerp/report/interface.py'
--- openerp/report/interface.py	2013-03-27 16:40:45 +0000
+++ openerp/report/interface.py	2013-07-17 09:53:25 +0000
@@ -39,7 +39,7 @@
 #
 def toxml(value):
     unicode_value = tools.ustr(value)
-    return unicode_value.replace('&', '&amp;').replace('<','&lt;').replace('>','&gt;')
+    return unicode_value.replace('&', '&amp;').replace('<','&lt;').replace('>','&gt;').replace('"','&quot;')
 
 class report_int(object):