details:   https://code.openbravo.com/erp/devel/pi/rev/c22edc257534
changeset: 16571:c22edc257534
user:      Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
date:      Thu May 17 18:18:54 2012 +0200
summary:   Fixed issue 15247: escaping problematics characters to include title 
in js code

diffstat:

 src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java |  3 +++
 src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java |  4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diffs (41 lines):

diff -r 8345a6b7c759 -r c22edc257534 
src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java
--- a/src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java Wed May 09 
16:32:42 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java Thu May 17 
18:18:54 2012 +0200
@@ -19,6 +19,8 @@
 
 package org.openbravo.erpCommon.ad_forms;
 
+import static org.apache.commons.lang.StringEscapeUtils.escapeHtml;
+
 import java.io.IOException;
 import java.io.PrintWriter;
 
@@ -96,6 +98,7 @@
     Form instanceActivationForm = OBDal.getInstance().get(Form.class, 
instanceActivationId);
     if (instanceActivationForm != null) {
       newTabTitle = instanceActivationForm.getIdentifier();
+      newTabTitle = escapeHtml(newTabTitle);
     } else {
       newTabTitle = "Instance Activation";
     }
diff -r 8345a6b7c759 -r c22edc257534 
src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
--- a/src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java Wed May 09 
16:32:42 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java Thu May 17 
18:18:54 2012 +0200
@@ -19,6 +19,8 @@
 
 package org.openbravo.erpCommon.ad_process;
 
+import static org.apache.commons.lang.StringEscapeUtils.escapeHtml;
+
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.sql.Timestamp;
@@ -287,6 +289,8 @@
     Window heartBeatConf_win = OBDal.getInstance().get(Window.class, 
heartBeatConf_win_id);
     if (heartBeatConf_win != null) {
       newTabTitle = heartBeatConf_win.getIdentifier();
+      newTabTitle = escapeHtml(newTabTitle);
+
     } else {
       newTabTitle = "Heartbeat Configuration";
     }

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to