Encode Intent scheme when serializing to URI string RESTRICT AUTOMERGE am: 0d561708bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20899934 Change-Id: Id45dcab5280d571f46deebc6a922dcb19c2b4730 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -11488,7 +11488,7 @@ public class Intent implements Parcelable, Cloneable {
|
|||||||
private void toUriInner(StringBuilder uri, String scheme, String defAction,
|
private void toUriInner(StringBuilder uri, String scheme, String defAction,
|
||||||
String defPackage, int flags) {
|
String defPackage, int flags) {
|
||||||
if (scheme != null) {
|
if (scheme != null) {
|
||||||
uri.append("scheme=").append(scheme).append(';');
|
uri.append("scheme=").append(Uri.encode(scheme)).append(';');
|
||||||
}
|
}
|
||||||
if (mAction != null && !mAction.equals(defAction)) {
|
if (mAction != null && !mAction.equals(defAction)) {
|
||||||
uri.append("action=").append(Uri.encode(mAction)).append(';');
|
uri.append("action=").append(Uri.encode(mAction)).append(';');
|
||||||
|
|||||||
Reference in New Issue
Block a user