Changeset 2060

Show
Ignore:
Timestamp:
12/12/07 23:28:29 (7 months ago)
Author:
anarcat
Message:

stricter pattern matching in local.sh so that comments are not considered

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/class/local.php

    r1012 r2060  
    1515$config_file = fopen('/etc/alternc/local.sh', 'r'); 
    1616while (FALSE !== ($line = fgets($config_file))) { 
    17     if (ereg('([A-Z0-9_]*)="([^"]*)"', $line, $regs)) { 
     17    if (ereg('^([A-Z0-9_]*)="([^"]*)"', $line, $regs)) { 
    1818        $GLOBALS['L_'.$regs[1]] = $regs[2]; 
    1919       if (isset($compat[$regs[1]])) {