diff options
author | James Moger <james.moger@gitblit.com> | 2012-12-07 08:24:43 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-12-07 08:24:43 -0500 |
commit | ac7e9a61460554aa0183c677bb15d1f473519f55 (patch) | |
tree | 7be13095f8b4e04b810cbc7af9d7b1444b09b432 /src/com/gitblit/wicket/pages/RepositoryPage.java | |
parent | dab13a996adbfbc4086be6ff96836e590f7d339c (diff) | |
download | gitblit-ac7e9a61460554aa0183c677bb15d1f473519f55.tar.gz gitblit-ac7e9a61460554aa0183c677bb15d1f473519f55.zip |
Harden metrics from polluted data (issue-176)
Diffstat (limited to 'src/com/gitblit/wicket/pages/RepositoryPage.java')
-rw-r--r-- | src/com/gitblit/wicket/pages/RepositoryPage.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/pages/RepositoryPage.java b/src/com/gitblit/wicket/pages/RepositoryPage.java index b4e1a0e3..897e2001 100644 --- a/src/com/gitblit/wicket/pages/RepositoryPage.java +++ b/src/com/gitblit/wicket/pages/RepositoryPage.java @@ -450,6 +450,8 @@ public abstract class RepositoryPage extends BasePage { Constants.SearchType searchType) {
String name = identity == null ? "" : identity.getName();
String address = identity == null ? "" : identity.getEmailAddress();
+ name = StringUtils.removeNewlines(name);
+ address = StringUtils.removeNewlines(address);
boolean showEmail = GitBlit.getBoolean(Keys.web.showEmailAddresses, false);
if (!showEmail || StringUtils.isEmpty(name) || StringUtils.isEmpty(address)) {
String value = name;
|