Revert "Try to handling paths with encodes percent or slash"
This reverts commit e8a59bc6f9
.
This commit is contained in:
parent
9b56416d23
commit
4225f21072
|
@ -246,13 +246,7 @@ export class IFrameWebview extends Disposable implements Webview {
|
|||
const uri = URI.from({
|
||||
scheme: entry.scheme,
|
||||
authority: entry.authority,
|
||||
// This gets re-encoded
|
||||
path: decodeURIComponent(
|
||||
entry.path
|
||||
// Make sure we don't transform encoded slash or percent into a real slash/percent
|
||||
.replace(/%2f/ig, '%252f')
|
||||
.replace(/%25/ig, '%2525')
|
||||
),
|
||||
path: decodeURIComponent(entry.path), // This gets re-encoded
|
||||
query: entry.query ? decodeURIComponent(entry.query) : entry.query,
|
||||
});
|
||||
this.loadResource(entry.id, uri, entry.ifNoneMatch);
|
||||
|
|
Loading…
Reference in a new issue