From 3c86ce635917ddbefc2c048a67208792bc051950 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 15 Nov 2005 22:45:37 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20socid=20non=20intialis=E9=20(pour=20info?= =?UTF-8?q?,=20cela=20sert=20quand=20l'utilisateur=20est=20un=20utilisateu?= =?UTF-8?q?r=20externe,=20c'est-a-dire=20un=20utilisateur=20cr=E9e=20depui?= =?UTF-8?q?s=20un=20contact=20client=20par=20exemple)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/fiche.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index adc95454bf5..c3e923907ed 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -113,11 +113,9 @@ if ($mode == 'search') { $db->free(); } } -$_socid = $_GET["socid"]; -/* - * Sécurité si un client essaye d'accéder à une autre fiche que la sienne - */ +// Protection quand utilisateur externe +$_socid = isset($_GET["socid"])?$_GET["socid"]:''; if ($user->societe_id > 0) { $_socid = $user->societe_id;