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