Ignore:
Timestamp:
01/26/13 10:25:31 (12 years ago)
Author:
adeicke
Message:

Fixing an issue, where unescaped text is stored in the logfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCComponent.java

    r984 r1046  
    3131import javax.accessibility.AccessibleContext; 
    3232 
     33import org.apache.commons.lang.StringEscapeUtils; 
     34 
    3335import de.ugoe.cs.util.StringTools; 
    3436 
     
    291293        builder.append("<component hash=\""); 
    292294        builder.append(Integer.toHexString(component.hashCode()) + "\" >" + StringTools.ENDLINE); 
    293         builder.append(" <param name=\"title\" value=\"" + title + "\" />" + StringTools.ENDLINE); 
     295        // title might contain html-Tags (e.g. in ArgoUML) --> must be escaped 
     296        builder.append(" <param name=\"title\" value=\"" + StringEscapeUtils.escapeXml(title) + "\" />" + StringTools.ENDLINE); 
    294297        builder.append(" <param name=\"class\" value=\"" + componentClass + "\" />" + 
    295298            StringTools.ENDLINE); 
Note: See TracChangeset for help on using the changeset viewer.