File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ var WebView = {
1414 return window . WEBVIEW_SERVER_URL + url . replace ( 'file://' , '/_app_file_' ) ;
1515 }
1616 if ( url . startsWith ( 'http://' ) && convertHttp ) {
17- return window . WEBVIEW_SERVER_URL + url . replace ( 'http://' , '/_http_proxy_' ) ;
17+ return window . WEBVIEW_SERVER_URL + encodeURIComponent ( url . replace ( 'http://' , '/_http_proxy_' ) ) ;
1818 }
1919 if ( url . startsWith ( 'https://' ) && convertHttp ) {
20- return window . WEBVIEW_SERVER_URL + url . replace ( 'https://' , '/_https_proxy_' ) ;
20+ return window . WEBVIEW_SERVER_URL + encodeURIComponent ( url . replace ( 'https://' , '/_https_proxy_' ) ) ;
2121 }
2222 if ( url . startsWith ( 'content://' ) ) {
2323 return window . WEBVIEW_SERVER_URL + url . replace ( 'content:/' , '/_app_content_' ) ;
You can’t perform that action at this time.
0 commit comments