mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
Best practise - filters output values
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1448581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -44,19 +44,19 @@ public class Skill implements IdEntity {
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
return StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(name));
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(name));
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
return StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(description));
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(description));
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Serializable getId() {
|
||||
|
||||
Reference in New Issue
Block a user