Skip to content

Commit

Permalink
LPS-133585 Use StringUtil.trim() which will remove all whitespace cha…
Browse files Browse the repository at this point in the history
…racters, not just space
  • Loading branch information
stian-sigvartsen authored and brianchandotcom committed Jun 23, 2021
1 parent f2a3ddb commit 2d0d5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal-impl/src/com/liferay/portal/util/HtmlImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public String escapeJSLink(String link) {
return StringPool.BLANK;
}

link = link.trim();
link = StringUtil.trim(link);

if (link.indexOf(StringPool.COLON) == 10) {
String protocol = StringUtil.toLowerCase(link.substring(0, 10));
Expand Down

0 comments on commit 2d0d5b9

Please sign in to comment.