From dcd368770172a3b3178dee581e26882e53b6102a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@anarcat.ath.cx> Date: Wed, 12 Dec 2007 22:28:29 +0000 Subject: [PATCH] stricter pattern matching in local.sh so that comments are not considered --- bureau/class/local.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/local.php b/bureau/class/local.php index 890dc780..9255d5f0 100644 --- a/bureau/class/local.php +++ b/bureau/class/local.php @@ -14,7 +14,7 @@ $compat = array('DEFAULT_MX' => 'MX', $config_file = fopen('/etc/alternc/local.sh', 'r'); while (FALSE !== ($line = fgets($config_file))) { - if (ereg('([A-Z0-9_]*)="([^"]*)"', $line, $regs)) { + if (ereg('^([A-Z0-9_]*)="([^"]*)"', $line, $regs)) { $GLOBALS['L_'.$regs[1]] = $regs[2]; if (isset($compat[$regs[1]])) { $GLOBALS['L_'.$compat[$regs[1]]] = $regs[2];