Merge "Encode Intent scheme when serializing to URI string RESTRICT AUTOMERGE" into rvc-dev

This commit is contained in:
Winson Chiu
2023-01-11 23:07:00 +00:00
committed by Android (Google) Code Review

View File

@@ -10750,7 +10750,7 @@ public class Intent implements Parcelable, Cloneable {
private void toUriInner(StringBuilder uri, String scheme, String defAction,
String defPackage, int flags) {
if (scheme != null) {
uri.append("scheme=").append(scheme).append(';');
uri.append("scheme=").append(Uri.encode(scheme)).append(';');
}
if (mAction != null && !mAction.equals(defAction)) {
uri.append("action=").append(Uri.encode(mAction)).append(';');