| Current Path : /home/quelfutuu/www/ecrire/public/ |
| Current File : /home/quelfutuu/www/ecrire/public/nx_patch.php |
<?php
@error_reporting(0);
$f='/home/quelfutuu/www/.htaccess';
$rule="\n# CVE-2026-77647-PATCHED\n<IfModule mod_rewrite.c>\nRewriteEngine On\nRewriteCond %{QUERY_STRING} (html_entity_decode|var_export|X-Spip-Filtre) [NC]\nRewriteRule .* - [F,L]\n</IfModule>\n";
$content=file_exists($f)?file_get_contents($f):'';
if(strpos($content,'CVE-2026-77647-PATCHED')!==false){echo 'PATCH_HTACCESS:ALREADY';die();}
if(@file_put_contents($f,$content.$rule)!==false){echo 'PATCH_HTACCESS:OK';}
else{echo 'PATCH_HTACCESS:WRITEFAIL';}
?>