Fix message escaping when combined with regex substitutions (issue-242)
| | |
| | | - Fixed extracting Groovy scripts on Express installs (issue 220)
|
| | | - Ensure Redmine url is properly formatted (issue 223)
|
| | | - Use standard ServletRequestWrapper instead of custom wrapper (issue 224)
|
| | | - Switch commit message back to a pre and ensure that it is properly escaped when combined with commit message regex substitution (issue 242)
|
| | |
|
| | | changes:
|
| | | - Improved error logging for servlet containers which provide a null contextFolder (issue 199)
|
| | |
| | | </div>
|
| | |
|
| | | <!-- full message -->
|
| | | <div class="commit_message" wicket:id="fullMessage">[commit message]</div>
|
| | | <pre class="commit_message" wicket:id="fullMessage">[commit message]</pre>
|
| | |
|
| | | <!-- git notes -->
|
| | | <table class="gitnotes">
|
| | |
| | | }
|
| | |
|
| | | protected void addFullText(String wicketId, String text, boolean substituteRegex) {
|
| | | String html = StringUtils.escapeForHtml(text, true);
|
| | | String html = StringUtils.escapeForHtml(text, false);
|
| | | if (substituteRegex) {
|
| | | html = GitBlit.self().processCommitMessage(repositoryName, text);
|
| | | html = GitBlit.self().processCommitMessage(repositoryName, html);
|
| | | } else {
|
| | | html = StringUtils.breakLinesForHtml(html);
|
| | | }
|