diff options
author | Selim Gurun <sgurun@google.com> | 2014-01-15 16:25:03 -0800 |
---|---|---|
committer | Selim Gurun <sgurun@google.com> | 2014-01-16 00:30:03 +0000 |
commit | 1089d9978db41ae9162cc13056539759ecce33ae (patch) | |
tree | ab005666bcd1ef519b0c9f2d4ad321d66db84ac1 /src | |
parent | 05288bbcba86cdf453e0eef9dacd2a076d079680 (diff) | |
download | Browser-1089d9978db41ae9162cc13056539759ecce33ae.tar.gz |
DO NOT MERGE Convert the scheme to lowercase
Bug: 9793586
This is to fix a bug in I8f6f03b05556ee4d6846c15752de9be54c003060.
Change-Id: I643fb1b0730e1e6b391c9c5af69cf7b86cbcdfe5
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/IntentHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index 9f054990..e32f871d 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -109,7 +109,7 @@ public class IntentHandler { // If url is to view private data files, don't allow. Uri uri = intent.getData(); - if (uri != null && uri.getScheme().startsWith("file") && + if (uri != null && uri.getScheme().toLowerCase().startsWith("file") && uri.getPath().startsWith(mActivity.getDatabasePath("foo").getParent())) { return; } |