Skip to content

Commit

Permalink
2.11.3-git-05 Weblog plugin xss protection
Browse files Browse the repository at this point in the history
  • Loading branch information
brushed committed Mar 28, 2022
1 parent 67c270f commit c5ff7ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ specific language governing permissions and limitations
under the License.
-->

**2022-03-28 Dirk Frederickx (brushed AT apache DOT org)**

* _2.11.3-git-05_

* Weblog plugin: sanities the plugin output to protect against Xss attacks.


**2022-03-22 Juan Pablo Santos (juanpablo AT apache DOT org)**

* _2.11.3-git-04_
Expand Down
2 changes: 1 addition & 1 deletion jspwiki-api/src/main/java/org/apache/wiki/api/Release.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final class Release {
* <p>
* If the build identifier is empty, it is not added.
*/
public static final String BUILD = "04";
public static final String BUILD = "05";

/**
* This is the generic version string you should use when printing out the version. It is of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public String execute( final Context context, final Map< String, String > params
startTime.setTime( d );
stopTime.setTime( d );
} catch( final ParseException e ) {
return "Illegal time format: "+startDay;
return "Illegal time format: "+ TextUtil.replaceEntities(startDay);
}
}

Expand Down

0 comments on commit c5ff7ab

Please sign in to comment.