/* ===== CVE-2026-77647 patch (injected) ===== */
if (!function_exists('spip_safe_export_env')) {
function spip_safe_export_env($var) {
if (is_array($var)) {
$out = "array(\n";
foreach ($var as $key => $value) {
$out .= "\t" . spip_safe_export_env($key) . ' => ' . spip_safe_export_env($value) . ",\n";
}
$out .= ")";
return $out;
}
if (is_string($var) && strpos($var, '<') !== false) {
return 'urldecode(' . var_export(urlencode($var), true) . ')';
}
if (is_object($var)) {
if (method_exists($var, '__set_state')) {
return var_export($var, true);
}
return 'null';
}
return var_export($var, true);
}
}
/* ===== end CVE-2026-77647 patch ===== */
Fatal error: Call to undefined function spip_safe_export_env() in /home/bertignat/www/ecrire/public/composer.php(51) : eval()'d code on line 46