From 217195fd3e3e2f85d25a4b660e21ad433ec99725 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 8 Sep 2012 12:56:07 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9cup=C3=A9rer=20la=20page=20d'accueil=20d?= =?UTF-8?q?epuis=20LDAP,=20et=20contourne=20le=20r=C3=A9glage=20par=20d?= =?UTF-8?q?=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- root/usr/share/mozilla-mcd/firefox.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/root/usr/share/mozilla-mcd/firefox.php b/root/usr/share/mozilla-mcd/firefox.php index fb70afc..86888e6 100644 --- a/root/usr/share/mozilla-mcd/firefox.php +++ b/root/usr/share/mozilla-mcd/firefox.php @@ -29,6 +29,10 @@ if(isset($_SERVER['QUERY_STRING']) && preg_match('/^.+@' . DOMAIN . '$/', $_SERV break; } } + $url = HOME_URL; + if (preg_match('/^https?:\/\//', $user[0]['labeleduri'][0])) + $url = $user[0]['labeleduri'][0]; + } else { exit; @@ -49,13 +53,14 @@ else { // Home page +("browser.startup.homepage", "'..'"); +("browser.startup.page", 1); ("startup.homepage_override_url", ""); ("startup.homepage_welcome_url", "");