From: <ha...@us...> - 2008-08-30 17:48:35
|
Revision: 9815 http://jmol.svn.sourceforge.net/jmol/?rev=9815&view=rev Author: hansonr Date: 2008-08-30 17:48:33 +0000 (Sat, 30 Aug 2008) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/openscience/jmol/app/webexport/PopInJmol.java trunk/Jmol/src/org/openscience/jmol/app/webexport/ScriptButtons.java Modified: trunk/Jmol/src/org/openscience/jmol/app/webexport/PopInJmol.java =================================================================== --- trunk/Jmol/src/org/openscience/jmol/app/webexport/PopInJmol.java 2008-08-30 16:56:21 UTC (rev 9814) +++ trunk/Jmol/src/org/openscience/jmol/app/webexport/PopInJmol.java 2008-08-30 17:48:33 UTC (rev 9815) @@ -89,7 +89,7 @@ s = TextFormat.simpleReplace(s, "@I@", "" + i); s = TextFormat.simpleReplace(s, "@WIDTH@", "" + JmolSizeW); s = TextFormat.simpleReplace(s, "@HEIGHT@", "" + JmolSizeH); - s = TextFormat.simpleReplace(s, "@NAME@", name); + s = TextFormat.simpleReplace(s, "@NAME@", GT.escapeHTML(name)); s = TextFormat.simpleReplace(s, "@APPLETNAME@", javaname); appletDefs.append(s); } Modified: trunk/Jmol/src/org/openscience/jmol/app/webexport/ScriptButtons.java =================================================================== --- trunk/Jmol/src/org/openscience/jmol/app/webexport/ScriptButtons.java 2008-08-30 16:56:21 UTC (rev 9814) +++ trunk/Jmol/src/org/openscience/jmol/app/webexport/ScriptButtons.java 2008-08-30 17:48:33 UTC (rev 9815) @@ -75,8 +75,8 @@ } else { String s = htmlAppletTemplate; s = TextFormat.simpleReplace(s, "@APPLETNAME0@", buttonname); - s = TextFormat.simpleReplace(s, "@NAME@", name); - s = TextFormat.simpleReplace(s, "@LABEL@", name); + s = TextFormat.simpleReplace(s, "@NAME@", GT.escapeHTML(name)); + s = TextFormat.simpleReplace(s, "@LABEL@", GT.escapeHTML(name)); appletDefs.append(s); } return html; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |