Skip to content

Commit 0f65c2d

Browse files
committed
(ios): Encode proxy url
1 parent cbf0e88 commit 0f65c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/www/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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_');

0 commit comments

Comments
 (0)