From f230a6f511b15526bb281e412811f1d5dcfbc482 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Tue, 4 Dec 2012 10:10:09 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20de=20Olivier=20Huet,=20merci=20=C3=A0?= =?UTF-8?q?=20lui=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le problème se posait lorsque le répertoire qu’on voulait protéger contenait un espace dans son chemin. Apache ne pouvait alors accéder un .htpasswd L’ajout de double quote dans le .htaccess règle le pb. --- bureau/class/m_hta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_hta.php b/bureau/class/m_hta.php index d62e53f8..32bfe7f5 100644 --- a/bureau/class/m_hta.php +++ b/bureau/class/m_hta.php @@ -84,7 +84,7 @@ class m_hta { return false; } fseek($file,0); - $param="AuthUserFile $absolute/.htpasswd\nAuthName \"Zone Protégée\"\nAuthType Basic\nrequire valid-user\n"; + $param="AuthUserFile \"$absolute/.htpasswd\"\nAuthName \"Zone Protégée\"\nAuthType Basic\nrequire valid-user\n"; fwrite($file, $param); fclose($file); }