mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-23 22:49:28 -05:00
082bc48c32
https://review.lineageos.org/q/topic:P_asb_2022-05 https://review.lineageos.org/q/topic:P_asb_2022-06 https://review.lineageos.org/q/topic:P_asb_2022-07 https://review.lineageos.org/q/topic:P_asb_2022-08 https://review.lineageos.org/q/topic:P_asb_2022-09 https://review.lineageos.org/q/topic:P_asb_2022-10 https://review.lineageos.org/q/topic:P_asb_2022-11 https://review.lineageos.org/q/topic:P_asb_2022-12 https://review.lineageos.org/q/topic:P_asb_2023-01 https://review.lineageos.org/q/topic:P_asb_2023-02 https://review.lineageos.org/q/topic:P_asb_2023-03 https://review.lineageos.org/q/topic:P_asb_2023-04 https://review.lineageos.org/q/topic:P_asb_2023-05 https://review.lineageos.org/q/topic:P_asb_2023-06 https://review.lineageos.org/q/topic:P_asb_2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/361250 https://review.lineageos.org/q/topic:P_asb_2023-08 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/364606 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/365328 https://review.lineageos.org/q/topic:P_asb_2023-09 https://review.lineageos.org/q/topic:P_asb_2023-10 https://review.lineageos.org/q/topic:P_asb_2023-11 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/374916 https://review.lineageos.org/q/topic:P_asb_2023-12 https://review.lineageos.org/q/topic:P_asb_2024-01 https://review.lineageos.org/q/topic:P_asb_2024-02 https://review.lineageos.org/q/topic:P_asb_2024-03 https://review.lineageos.org/q/topic:P_asb_2024-04 Signed-off-by: Tavi <tavi@divested.dev>
34 lines
1.6 KiB
Diff
34 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Ayush Sharma <ayushsha@google.com>
|
|
Date: Tue, 10 May 2022 14:09:40 +0000
|
|
Subject: [PATCH] Encode authority part of uri before showing in UI
|
|
|
|
As per rfc2396, allowing only characters that are reserved|unreserved|@
|
|
to be in non escaped form, all the other characters will be escaped.
|
|
This would cover all the possible characters there can be in valid
|
|
authority as per the rfc2396. android.net.Uri conforms to RFC 2396.
|
|
|
|
Bug: 221859869
|
|
Test: Manual
|
|
Change-Id: Ib4f5431bd80b7f4c72c4414f98d99eeb7ca900ed
|
|
Merged-In: Ib4f5431bd80b7f4c72c4414f98d99eeb7ca900ed
|
|
(cherry picked from commit 8550c37c186099926ce364b65b61ffbf6ed7958d)
|
|
Merged-In: Ib4f5431bd80b7f4c72c4414f98d99eeb7ca900ed
|
|
---
|
|
src/com/android/keychain/KeyChainActivity.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/com/android/keychain/KeyChainActivity.java b/src/com/android/keychain/KeyChainActivity.java
|
|
index aa50888..6db4855 100644
|
|
--- a/src/com/android/keychain/KeyChainActivity.java
|
|
+++ b/src/com/android/keychain/KeyChainActivity.java
|
|
@@ -333,7 +333,7 @@ public class KeyChainActivity extends Activity {
|
|
Uri uri = getIntent().getParcelableExtra(KeyChain.EXTRA_URI);
|
|
if (uri != null) {
|
|
String hostMessage = String.format(res.getString(R.string.requesting_server),
|
|
- uri.getAuthority());
|
|
+ Uri.encode(uri.getAuthority(), "$,;:@&=+"));
|
|
if (contextMessage == null) {
|
|
contextMessage = hostMessage;
|
|
} else {
|