)]}'
{
  "commit": "76735553e9d35a4749e7cb89619541e841ad7deb",
  "tree": "20e84a8de68e0a9ee145fb83f14db7b033404b2c",
  "parents": [
    "d276d2655bc7fbdba690ea93cd999b44a1f04d3d"
  ],
  "author": {
    "name": "Lucas Lin",
    "email": "lucaslin@google.com",
    "time": "Fri Mar 03 08:13:50 2023 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Thu May 11 18:37:56 2023 +0000"
  },
  "message": "Sanitize VPN label to prevent HTML injection\n\nThis commit will try to sanitize the content of VpnDialog. This\ncommit creates a function which will try to sanitize the VPN\nlabel, if the sanitized VPN label is different from the original\none, which means the VPN label might contain HTML tag or the VPN\nlabel violates the words restriction(may contain some wording\nwhich will mislead the user). For this kind of case, show the\npackage name instead of the VPN label to prevent misleading the\nuser.\n\nThe malicious VPN app might be able to add a large number of line\nbreaks with HTML in order to hide the system-displayed text from\nthe user in the connection request dialog. Thus, sanitizing the\ncontent of the dialog is needed.\n\nBug: 204554636\nTest: N/A\n(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2178216b98bf9865edee198f45192f0b883624ab)\nMerged-In: I8eb890fd2e5797d8d6ab5b12f9c628bc9616081d\nChange-Id: I8eb890fd2e5797d8d6ab5b12f9c628bc9616081d\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f971a0916837742e3512a42ad7aff21d14b9c1de",
      "old_mode": 33188,
      "old_path": "packages/VpnDialogs/res/values/strings.xml",
      "new_id": "a85b8e4ff55313812bff7d8789d87edfa4840554",
      "new_mode": 33188,
      "new_path": "packages/VpnDialogs/res/values/strings.xml"
    },
    {
      "type": "modify",
      "old_id": "fb2367843fc1809661f38f4ff9a931192e7b22a3",
      "old_mode": 33188,
      "old_path": "packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java",
      "new_id": "2b3202e0a982229bd5c746f46c587250835595cc",
      "new_mode": 33188,
      "new_path": "packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java"
    }
  ]
}
