Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Set debug to false by default to hide trace info that exposes php files path, Pre-authentication PHP Stack-Trace and Source-Code Disclosure via DEBUG=true GHSA-xgvg-r47g-786r reported by @CyberWarrior9

givanz58d61cc7e735
diff --git a/admin/controller/user/reset.php b/admin/controller/user/reset.php
index 27a0f75..f4eb2d9 100755
--- a/admin/controller/user/reset.php
+++ b/admin/controller/user/reset.php
@@ -25,6 +25,7 @@ namespace Vvveb\Controller\User;
use function Vvveb\__;
use function Vvveb\email;
use Vvveb\System\Functions\Str;
+use Vvveb\System\Locale;
use Vvveb\System\Sites;
use Vvveb\System\User\Admin;
use function Vvveb\url;
diff --git a/env.php b/env.php
index 5cc6b94..d0ff3af 100755
--- a/env.php
+++ b/env.php
@@ -34,7 +34,7 @@ define('PAGE_CACHE', true);
Disable on production to hide error messages, if enabled it will show detailed error messages
Warning: Enabling debug will decrease performance
*/
-defined('DEBUG') || define('DEBUG', true);
+defined('DEBUG') || define('DEBUG', false);
defined('VTPL_DEBUG') || define('VTPL_DEBUG', false);
defined('GETTEXT') || define('GETTEXT', true);