From c839248e85301a4e0e48b5e53d5a2cafc4652485 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Tue, 3 May 2005 09:40:26 +0000 Subject: [PATCH] =?UTF-8?q?mieux=20(ne=20pas=20autoriser=20=C3=A0=20acc?= =?UTF-8?q?=C3=A9der=20=C3=A0=20dist/article.html)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- page.php3 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/page.php3 b/page.php3 index 81937c1a95..18a8ecc6b7 100644 --- a/page.php3 +++ b/page.php3 @@ -20,11 +20,10 @@ if (strstr($fond, '..')) { if (!function_exists('find_in_path')) { include ('ecrire/inc_version.php3'); } -if (preg_match(',^(squelettes|dist)/,', find_in_path("$fond.html"))) { +if (preg_match(',^(squelettes/|dist/404,', $a = find_in_path("$fond.html"))) { include ("inc-public.php3"); } else { - echo find_in_path("$fond.html"); - spip_log("page.php3: le squelette $fond.html *doit* se trouver dans squelettes/ ou dist/"); + spip_log("page.php3: le squelette $fond.html ($a) *doit* se trouver dans squelettes/"); } -- GitLab