Skip to content
Snippets Groups Projects
Commit eec5bf2f authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

updateKey comparison with no index on array

parent 169da7b7
Branches
No related tags found
No related merge requests found
<?php
if (isset($_GET["updateVBcms"])&&!empty($_GET["updateVBcms"])) {
$updateKey=$bdd->query("SELECT * FROM `vbcms-settings` WHERE name = 'updateKey'")->fetch(PDO::FETCH_ASSOC);
if($_GET["updateVBcms"]==$updateKey){
if($_GET["updateVBcms"]==$updateKey['value']){
$newUpdateInfos = checkVBcmsUpdates();
$updateFilename = $GLOBALS['vbcmsRootPath']."/vbcms-content/updates/".basename($newUpdateInfos['zip']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment