bug 965324 - validate data coming in to webapp dispatcher; r=wesj

This commit is contained in:
Martyn Haigh 2014-02-11 23:41:46 -08:00
parent 84e63b5e40
commit 198f2479d2

View File

@ -25,10 +25,16 @@ public class Dispatcher extends Activity {
if (bundle == null) {
Log.e(LOGTAG, "Passed intent data missing.");
return;
}
String packageName = bundle.getString("packageName");
if (packageName == null) {
Log.e(LOGTAG, "Package name data missing.");
return;
}
int index = allocator.getIndexForApp(packageName);
boolean isInstalled = index >= 0;
if (!isInstalled) {