mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
JSPrompt "Security check" should whitelist all file URIs too
This commit is contained in:
parent
505081f42f
commit
ff2ee67cb8
@ -1042,7 +1042,7 @@ public class DroidGap extends PhonegapActivity {
|
|||||||
// Security check to make sure any requests are coming from the page initially
|
// Security check to make sure any requests are coming from the page initially
|
||||||
// loaded in webview and not another loaded in an iframe.
|
// loaded in webview and not another loaded in an iframe.
|
||||||
boolean reqOk = false;
|
boolean reqOk = false;
|
||||||
if (url.indexOf(this.ctx.baseUrl) == 0 || isUrlWhiteListed(url)) {
|
if (url.startsWith("file://") || url.indexOf(this.ctx.baseUrl) == 0 || isUrlWhiteListed(url)) {
|
||||||
reqOk = true;
|
reqOk = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user