Commit Graph
4 Commits
Author SHA1 Message Date
BlackAngelTV e099e06614 fix(core): add mbstring polyfills for PHP installs without the extension
Some Windows PHP setups and minimal Docker images ship without
mbstring, which crashed any page touching the database. Provide
UTF-8 equivalents for the four mb_* functions the project uses;
the extension keeps precedence when loaded.
2026-09-16 14:36:12 +02:00
BlackAngelTV da74767843 fix(core): resolve site URLs against a dynamic base URL
WAMP/XAMPP serve the site from a subfolder of www while production
serves it from the domain root; root-absolute URLs broke every page
and asset on Windows. Add fws_base_url()/fws_url() and route all
shell URLs (nav, footer, logos, canonical, package thumbnails)
through them, with path-form route detection adjusted for
subfolder deployments.
2026-09-16 14:35:24 +02:00
BlackAngelTV 6b6b07aa83 Erreurs sous /api/ : page visuelle dans le navigateur, JSON pour curl
Négociation de contenu via l'en-tête Accept : un navigateur (text/html
explicite) reçoit la page 404 du site, tout autre client (curl, scripts,
apps) reçoit le JSON. S'applique aux 404 doux et aux réponses du filet
d'erreurs PHP.
2026-09-16 11:46:34 +02:00
BlackAngelTV 82168e2678 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
2026-09-16 11:40:43 +02:00