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