Template
Masquer toutes les erreurs : 404 doux, API blindée, aucune fuite PHP
- /api/bugs/ et tout chemin inconnu sous /api/ : 404 JSON propre - 403/404 Apache : ErrorDocument vers page.php, sans page Apache brute - fichiers internes (inc/, corps de pages, db.php, init.php...) : 404 - erreurs PHP : display_errors off, handlers exception/fatal, réponses JSON ou HTML discrètes, journalisation locale gitignorée
This commit is contained in:
1 parent
3b3127bb34
commit
82168e2678
6 files changed
+196
No files matched your search
@@ -6,6 +6,10 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/* Filet de sécurité : aucune erreur PHP ne fuit jamais côté client
|
||||
* (JSON sous /api/, page HTML discrète sinon). */
|
||||
require_once dirname(__DIR__, 2) . '/inc/errors.php';
|
||||
|
||||
/* ───────────── UTF-8 (partagé avec inc/site.php, gardes function_exists) ── */
|
||||
|
||||
if (!function_exists('fws_utf8_str')) {
|
||||
|
||||
Reference in new issue
Block a user