From e3ddf4fe9742ad72be8fff3151f366320081cdf8 Mon Sep 17 00:00:00 2001 From: Matthieu Marcillaud <marcimat@rezo.net> Date: Sat, 12 Feb 2022 10:20:02 +0100 Subject: [PATCH] =?UTF-8?q?Depuis=20PHP=205.3.7,=20la=20backtrace=20limite?= =?UTF-8?q?=20est=20=C3=A0=201=5F000=5F000=20donc=20bien=20sup=C3=A9rieure?= =?UTF-8?q?=20d=C3=A9j=C3=A0=20=C3=A0=20ce=20qui=20=C3=A9tait=20v=C3=A9rif?= =?UTF-8?q?i=C3=A9=20ici.=20On=20l=E2=80=99enl=C3=A8ve=20donc.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit c8696640d68f7020535d63378ccb6c0e4e15437a) --- ecrire/inc/texte_mini.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ecrire/inc/texte_mini.php b/ecrire/inc/texte_mini.php index f39f316d39..451af51ea2 100644 --- a/ecrire/inc/texte_mini.php +++ b/ecrire/inc/texte_mini.php @@ -206,20 +206,6 @@ function echappe_html( return $letexte; } - // si le texte recu est long PCRE risque d'exploser, on - // fait donc un mic-mac pour augmenter pcre.backtrack_limit - if (function_exists('ini_set')) { - if (($len = strlen($letexte)) > 100000) { - if (!$old = @ini_get('pcre.backtrack_limit')) { - $old = 100000; - } - if ($len > $old) { - @ini_set('pcre.backtrack_limit', $len); - spip_log("ini_set pcre.backtrack_limit=$len ($old)"); - } - } - } - if ( ($preg or strpos($letexte, '<') !== false) and preg_match_all($preg ?: _PROTEGE_BLOCS, $letexte, $matches, PREG_SET_ORDER) -- GitLab