From df7d165228846d51beba93aaf133809d8f4824d4 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Tue, 13 Aug 2024 21:08:35 +0100 Subject: Move patches into a folder --- ...er-Disable-running-arbitrary-code-snippet.patch | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch (limited to 'vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch') diff --git a/vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch b/vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch new file mode 100644 index 0000000..eb08fe5 --- /dev/null +++ b/vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch @@ -0,0 +1,46 @@ +From 1ba374fb928b0706078ab293a7abdab2f45f1643 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Sat, 20 Jul 2024 00:21:22 +0100 +Subject: [PATCH 7/8] SupportHelper: Disable running arbitrary code snippets + +Why is this even a thing? +--- + src/plugins/_core/supportHelper.tsx | 22 ---------------------- + 1 file changed, 22 deletions(-) + +diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx +index de8e37c7..7cb0044d 100644 +--- a/src/plugins/_core/supportHelper.tsx ++++ b/src/plugins/_core/supportHelper.tsx +@@ -300,28 +300,6 @@ export default definePlugin({ + + ); + } +- +- if (props.message.author.id === VENBOT_USER_ID) { +- const match = CodeBlockRe.exec(props.message.content || props.message.embeds[0]?.rawDescription || ""); +- if (match) { +- buttons.push( +- +- ); +- } +- } + } + + return buttons.length +-- +2.45.2 + -- cgit v1.2.3