mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 965324 - validate data coming in to webapp dispatcher; r=wesj
This commit is contained in:
parent
84e63b5e40
commit
198f2479d2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user