From 70a4c2261f556192db168e445eac35d103fb8d79 Mon Sep 17 00:00:00 2001 From: denisb <denisb@a-working-class-hero-is-something-to.be> Date: Mon, 8 Feb 2010 00:49:41 +0000 Subject: [PATCH] =?UTF-8?q?=C3=A9viter=20un=20../tmp//.htaccess=20le=20$re?= =?UTF-8?q?p=20pass=C3=A9=20en=20argument=20a=20parfois=20un=20/=20termina?= =?UTF-8?q?l=20(mais=20pas=20toujours).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc/acces.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/acces.php b/ecrire/inc/acces.php index 924d738bbb..0a9c89aa3f 100644 --- a/ecrire/inc/acces.php +++ b/ecrire/inc/acces.php @@ -159,7 +159,7 @@ function generer_htpass($pass) { // // http://doc.spip.org/@verifier_htaccess function verifier_htaccess($rep) { - $htaccess = "$rep/" . _ACCESS_FILE_NAME; + $htaccess = rtrim($rep,"/") . "/" . _ACCESS_FILE_NAME; if ((!@file_exists($htaccess)) AND !defined('_ECRIRE_INSTALL') AND !defined('_TEST_DIRS')) { spip_log("demande de creation de $htaccess"); -- GitLab