Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1078e632 authored by Tom Taylor's avatar Tom Taylor Committed by Android (Google) Code Review
Browse files

Merge "37544704 PduPersister is not doing a safe Uri comparison" into oc-dev

parents cc051eea 224c43f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -836,7 +836,7 @@ public class PduPersister {
                os = mContentResolver.openOutputStream(uri);
                if (data == null) {
                    dataUri = part.getDataUri();
                    if ((dataUri == null) || (dataUri == uri)) {
                    if ((dataUri == null) || (dataUri.equals(uri))) {
                        Log.w(TAG, "Can't find data for this part.");
                        return;
                    }
@@ -1136,7 +1136,7 @@ public class PduPersister {
        // 1. New binary data supplied or
        // 2. The Uri of the part is different from the current one.
        if ((part.getData() != null)
                || (uri != part.getDataUri())) {
                || (!uri.equals(part.getDataUri()))) {
            persistData(part, uri, contentType, preOpenedFiles);
        }
    }