Skip to content

Commit

Permalink
LPS-30637 StringIndexOutOfBoundsException when href is less than frie…
Browse files Browse the repository at this point in the history
…ndlyURLMapping.length()
  • Loading branch information
jjangsam authored and brianchandotcom committed Oct 25, 2012
1 parent 377f017 commit f7f2571
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ private Map<String, Boolean> _getOutgoingLinks(WikiPage page)
for (StartTag startTag : startTags) {
String href = startTag.getAttributeValue("href");

if (Validator.isNull(href)) {
if (Validator.isNull(href) ||
(href.length() <= _friendlyURLMapping.length())) {

continue;
}

Expand Down

0 comments on commit f7f2571

Please sign in to comment.