summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-09-29 21:10:42 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-09-29 21:10:42 -0400
commit9b67695b8a70a018493fa01924d67dbdb9560bd3 (patch)
treeae2bcc1412f8fb7175f99de8f2fc33d54f8e6628
parent4f90aa9f94f2d4512fe438964f83aa278d29cc0e (diff)
parent605a0901134c0840b2fcf0514b4c1f8bc10dc7e0 (diff)
downloadCalendar-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.java5
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.