Skip to content

Commit

Permalink
eck CSRF token in styling plugin. fixes #3560
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Dec 12, 2021
1 parent 96f679f commit 54bcc3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/plugins/styling/admin.php
Expand Up @@ -34,6 +34,7 @@ public function handle()
global $INPUT;
$run = $INPUT->extract('run')->str('run');
if (!$run) return;
if(!checkSecurityToken()) return;
$run = 'run'.ucfirst($run);
$this->$run();
}
Expand Down Expand Up @@ -76,6 +77,7 @@ public function form()
echo $this->locale_xhtml('intro');

echo '<form class="styling" method="post" action="'.$target.'">';
formSecurityToken();

echo '<table><tbody>';
foreach ($replacements as $key => $value) {
Expand Down

0 comments on commit 54bcc3a

Please sign in to comment.