Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Sanitize theme name, reported by @geo-chen

givanz1d76ad52402b
diff --git a/admin/controller/editor/revisions.php b/admin/controller/editor/revisions.php
index 77ba896..0380bd6 100644
--- a/admin/controller/editor/revisions.php
+++ b/admin/controller/editor/revisions.php
@@ -32,7 +32,7 @@ class Revisions extends Base {
function getThemeFolder() {
$theme = $this->request->get['theme'] ?? Sites::getTheme($this->global['site_id']) ?? 'default';
- return $theme;
+ return sanitizeFileName($theme);
}
private function sanitizeBackupFileName($fileName) {