From 1089d9978db41ae9162cc13056539759ecce33ae Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Wed, 15 Jan 2014 16:25:03 -0800 Subject: DO NOT MERGE Convert the scheme to lowercase Bug: 9793586 This is to fix a bug in I8f6f03b05556ee4d6846c15752de9be54c003060. Change-Id: I643fb1b0730e1e6b391c9c5af69cf7b86cbcdfe5 --- src/com/android/browser/IntentHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/browser') diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index 9f05499..e32f871 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; } -- cgit v1.1