Skip to content

Commit

Permalink
Fix ava.net.MalformedURLException when internal DTD (see #106)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelozerr committed Nov 14, 2018
1 parent ce0240b commit 266bc2f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ public String getSystemId(XMLDocument xmlDocument, String namespaceURI) {
content = content.substring(0, lastQuoteIndex);
lastQuoteIndex = content.lastIndexOf("\"");
if (lastQuoteIndex != -1) {
content = content.substring(lastQuoteIndex + 1, content.length());
return content.substring(lastQuoteIndex + 1, content.length());

}
}
return content; // documentType.getSystemId();
return null;
}

@Override
Expand Down

0 comments on commit 266bc2f

Please sign in to comment.