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