/src/main/java/org/htmlunit/util/UrlUtils.java
if ( colonIdx > -1) {
if ( semicolonIndex >= 0 ) {
startIndex = questionMarkIndex; } url.query_ = spec.substring(questionMarkIndex + 1, endIndex); endIndex = questionMarkIndex; } final int semicolonIndex = StringUtils.indexOf(spec, ';', startIndex, endIndex); <extra_id_0> if ((locationStartIndex >= 0) && (locationEndIndex < 0)) { locationEndIndex = semicolonIndex; startIndex = semicolonIndex; } url.parameters_ = spec.substring(semicolonIndex + 1, endIndex); endIndex = semicolonIndex;