Skip to content

Commit

Permalink
fix: added missing escapting of value
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Mar 2, 2024
1 parent 1f9d46e commit 1b68a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/src/phpMyFAQ/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function addNewsEntry(array $data): bool
$this->configuration->getDb()->escape($data['header']),
$this->configuration->getDb()->escape($data['content']),
$this->configuration->getDb()->escape($data['authorName']),
$data['authorEmail'],
$this->configuration->getDb()->escape($data['authorEmail']),
$data['dateStart'],
$data['dateEnd'],
$data['active'],
Expand Down Expand Up @@ -332,7 +332,7 @@ public function updateNewsEntry(int $id, array $data): bool
$this->configuration->getDb()->escape($data['header']),
$this->configuration->getDb()->escape($data['content']),
$this->configuration->getDb()->escape($data['authorName']),
$data['authorEmail'],
$this->configuration->getDb()->escape($data['authorEmail']),
$data['dateStart'],
$data['dateEnd'],
$data['active'],
Expand Down

0 comments on commit 1b68a5f

Please sign in to comment.