diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-29 21:10:42 -0400 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-29 21:10:42 -0400 |
commit | 9b67695b8a70a018493fa01924d67dbdb9560bd3 (patch) | |
tree | ae2bcc1412f8fb7175f99de8f2fc33d54f8e6628 | |
parent | 4f90aa9f94f2d4512fe438964f83aa278d29cc0e (diff) | |
parent | 605a0901134c0840b2fcf0514b4c1f8bc10dc7e0 (diff) | |
download | Calendar-9b67695b8a70a018493fa01924d67dbdb9560bd3.tar.gz |
Merge change I404f895f into eclair
* changes:
b/2078757 Validate the authority of the intent.
-rw-r--r-- | src/com/android/calendar/AlertService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/calendar/AlertService.java b/src/com/android/calendar/AlertService.java index 65506941..f2859507 100644 --- a/src/com/android/calendar/AlertService.java +++ b/src/com/android/calendar/AlertService.java @@ -113,6 +113,11 @@ public class AlertService extends Service { } if (alertUri != null) { + if (Calendar.AUTHORITY.equals(alertUri.getAuthority())) { + Log.w(TAG, "Invalid AUTHORITY uri: " + alertUri); + return; + } + // Record the received time in the CalendarAlerts table. // This is useful for finding bugs that cause alarms to be // missed or delayed. |