Skip to content

Commit

Permalink
ChannelForm: Don't filter stored configuration
Browse files Browse the repository at this point in the history
It's been filtered before, otherwise it wouldn't be stored,
would it?
  • Loading branch information
nilmerg committed Jul 15, 2024
1 parent 1bd9f93 commit 15cd72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/forms/ChannelForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function editChannel(): void
$storedValues = $this->fetchDbValues();

$channel['config'] = json_encode($this->filterConfig($channel['config']));
$storedValues['config'] = json_encode($this->filterConfig($storedValues['config']));
$storedValues['config'] = json_encode($storedValues['config']);

if (! empty(array_diff_assoc($channel, $storedValues))) {
$channel['changed_at'] = time() * 1000;
Expand Down

0 comments on commit 15cd72b

Please sign in to comment.