modules/galleries: Fixed code injection vulnerability

This commit is contained in:
michu2k
2021-07-31 16:54:30 +02:00
parent 86011d4a26
commit e352185d6a
6 changed files with 63 additions and 59 deletions

View File

@@ -33,7 +33,7 @@ class Site extends SiteModule
} else {
$items = $this->db('galleries_items')->where('gallery', $gallery['id'])->desc('id')->toArray();
}
$tempAssign = $gallery;
if (count($items)) {
@@ -51,6 +51,7 @@ class Site extends SiteModule
}
}
}
$this->tpl->set('gallery', $assign);
$this->core->addCSS(url('inc/jscripts/lightbox/lightbox.min.css'));