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