Skip to content

Commit

Permalink
small security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestaSafe authored Dec 4, 2022
1 parent b12f3d1 commit 893cf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PrettyBlocksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private function removeConfig()
{
$id = $this->id_prettyblocks;
$key = $id . "\_%_CONFIG";
$sql = 'SELECT name FROM ' . _DB_PREFIX_ . "configuration WHERE name LIKE '" . $key . "'";
$sql = 'SELECT name FROM ' . _DB_PREFIX_ . "configuration WHERE name LIKE '" . pSQL($key) . "'";
$keys = Db::getInstance()->executeS($sql);
if (count($keys) > 0) {
foreach ($keys as $k) {
Expand Down

0 comments on commit 893cf9d

Please sign in to comment.