Skip to content

Instantly share code, notes, and snippets.

@SebSept
Created August 4, 2022 14:43
Show Gist options
  • Save SebSept/c52dda1228b45fc7be33b57533252a63 to your computer and use it in GitHub Desktop.
Save SebSept/c52dda1228b45fc7be33b57533252a63 to your computer and use it in GitHub Desktop.
Index: config/smarty.config.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/config/smarty.config.inc.php b/config/smarty.config.inc.php
--- a/config/smarty.config.inc.php (revision cd9eaeed1ed65393d33a95ff8ba7b288c17d1c07)
+++ b/config/smarty.config.inc.php (revision 2e9363675c555b7a380b10aad289921581a21b76)
@@ -40,10 +40,12 @@
$smarty->setConfigDir(_PS_SMARTY_DIR_.'configs');
$smarty->caching = false;
-if (Configuration::get('PS_SMARTY_CACHING_TYPE') == 'mysql') {
+// interdiction du cache smarty mysql - https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4
+/*if (Configuration::get('PS_SMARTY_CACHING_TYPE') == 'mysql') {
include _PS_CLASS_DIR_.'Smarty/SmartyCacheResourceMysql.php';
$smarty->caching_type = 'mysql';
-}
+}*/
+
$smarty->force_compile = (Configuration::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_FORCE_COMPILE_) ? true : false;
$smarty->compile_check = (Configuration::get('PS_SMARTY_FORCE_COMPILE') >= _PS_SMARTY_CHECK_COMPILE_) ? true : false;
$smarty->debug_tpl = _PS_ALL_THEMES_DIR_.'debug.tpl';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment