fix RCE, fullUserInChatbox
This commit is contained in:
parent
c159c2c6f8
commit
b4793224b4
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ export default definePlugin({
|
|||
patches: [
|
||||
{
|
||||
// Same find as RoleColorEverywhere chatbox mentions
|
||||
find: ':"text":',
|
||||
find: '"text":"locked"',
|
||||
replacement: {
|
||||
match: /(hidePersonalInformation\).+?)(if\(null!=\i\){.+?return \i)(?=})/,
|
||||
replace: "$1return $self.UserMentionComponent({...arguments[0],originalComponent:()=>{$2}});"
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export default definePlugin({
|
|||
// Slate
|
||||
{
|
||||
// Same find as FullUserInChatbox
|
||||
find: ':"text":',
|
||||
find: '"text":"locked"',
|
||||
replacement: [
|
||||
{
|
||||
match: /let\{id:(\i),guildId:\i,channelId:(\i)[^}]*\}.*?\.\i,{(?=children)/,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue