Skip to content

Commit

Permalink
Fix ACP Settings management RCE
Browse files Browse the repository at this point in the history
  • Loading branch information
dvz committed Oct 30, 2021
1 parent 203cbcd commit 89ba6fd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions admin/modules/config/settings.php
Expand Up @@ -306,11 +306,7 @@

if(!$errors)
{
if($mybb->input['type'] == "custom")
{
$options_code = $mybb->input['extra'];
}
else if($mybb->input['extra'])
if($mybb->input['extra'])
{
$options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}";
}
Expand Down Expand Up @@ -513,11 +509,7 @@

if(!$errors)
{
if($mybb->input['type'] == "custom")
{
$options_code = $mybb->input['extra'];
}
else if($mybb->input['extra'])
if($mybb->input['extra'])
{
$options_code = "{$mybb->input['type']}\n{$mybb->input['extra']}";
}
Expand Down

0 comments on commit 89ba6fd

Please sign in to comment.