You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4eb40f9
Browse filesBrowse the repository at this point in the historyBrowse files
// "a base URI [...] does not allow a fragment" (https://tools.ietf.org/html/rfc3986#section-4.3)
265
+
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), null);
264
266
// query string parsing
265
267
if (pathToResolve.startsWith("?")) {
266
-
// drop fragment from uri if it has one
267
-
if (uri.getFragment() != null) {
268
-
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), null, null);
269
-
}
268
+
// drop query, https://tools.ietf.org/html/rfc3986#section-5.2.2: T.query = R.query;
269
+
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), null, null);
270
270
// add query to the end manually (as URI.resolve does it wrong)
271
271
returnuri.toString() + pathToResolve;
272
+
} elseif (pathToResolve.startsWith("#")) {
273
+
// add fragment to the end manually (as URI.resolve does it wrong)
0 commit comments