Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Android url prefixing #44

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

davidgovea
Copy link
Contributor

Fixes issue #43

During the 2.6->2.7 transition, the url-prefixing regex in WebViewActivity.java was refactored: two globbing operators (*) were removed, causing much more aggressive prefixing. This seems unintentional: the commit - d8a3edf introduced additional prefixing for the encrypted-file feature.


URL examples

https://remote.com/cordova.html - previously no prefixing, now prefixed to file:///android_asset/www/https://remote.com/cordova.html

javascript:alert(1) - previously no prefixing, now prefixed to file:///android_asset/www/javascript:alert(1)


This PR restores the regex to it's v2.6.0 functionality.

kiwi-josh added a commit to htdc/cordova-plugin-second-webview that referenced this pull request Sep 6, 2018
@arturokunder arturokunder merged commit bc9b239 into kunder-lab:master Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants