Skip to content

Commit

Permalink
Best practise - filters output values
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1448581 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lukaszlenart committed Feb 21, 2013
1 parent fe36e8b commit fb161f5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ public Skill(String name, String description) {
}

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() {
Expand Down

0 comments on commit fb161f5

Please sign in to comment.