From 9f2c9ac14953e6424854ef4b327260dd0a476016 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 14 Mar 2023 11:33:45 +0100 Subject: [PATCH] Obfuscation 12.3.02 --- CHANGES.md | 3 +++ LISEZMOI.md | 2 +- README.md | 2 +- core/class/router.class.php | 16 ++++++++-------- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 66efc4f4..ace579fa 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Changelog +## Version 12.3.02 +- Amélioration de l'obfuscation. + ## Version 12.3.01 ### Améliorations : - Prise en charge PHP 8.2 diff --git a/LISEZMOI.md b/LISEZMOI.md index 90172085..01073475 100644 --- a/LISEZMOI.md +++ b/LISEZMOI.md @@ -1,4 +1,4 @@ -# ZwiiCMS 12.3.01 +# ZwiiCMS 12.3.02 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/README.md b/README.md index 0f9b8e1d..9636a164 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiCMS 12.3.01 +# ZwiiCMS 12.3.02 Zwii is a database-less (flat-file) CMS that allows you to easily create and manage a web site without any programming knowledge. diff --git a/core/class/router.class.php b/core/class/router.class.php index 849d8c3a..c65b8a12 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -907,23 +907,23 @@ class core extends common break; // Layout allégé case self::DISPLAY_LAYOUT_LIGHT: - //ob_start(); + ob_start(); require 'core/layout/light.php'; // Supprime les espaces, les sauts de ligne, les tabulations et autres caractères inutiles - //$content = preg_replace('/\s{2,}/u', ' ', ob_get_clean()); + $content = preg_replace('/[\t ]+/u', ' ', ob_get_clean()); // Convertit la chaîne en UTF-8 pour conserver les caractères accentués - //$content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); - //echo $content; + $content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); + echo $content; break; // Layout principal case self::DISPLAY_LAYOUT_MAIN: - //ob_start(); + ob_start(); require 'core/layout/main.php'; // Supprime les espaces, les sauts de ligne, les tabulations et autres caractères inutiles - //$content = preg_replace('/\s{2,}/u', ' ', ob_get_clean()); + $content = preg_replace('/[\t ]+/u', ' ', ob_get_clean()); // Convertit la chaîne en UTF-8 pour conserver les caractères accentués - //$content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); - //echo $content; + $content = mb_convert_encoding($content, 'UTF-8', 'UTF-8'); + echo $content; break; } }