YES and NO should not be booleanized inside triple-quotes in a

config-file. this behaviour changed by accident in 2.6.1 and is now
reverted to pre-2.6.1 behaviour
This commit is contained in:
messju
2004-02-12 11:28:50 +00:00
parent 7871b6e7cc
commit b474404b97
2 changed files with 5 additions and 1 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fix YES and NO should not be booleanized inside triple-quotes in a
config-file (messju)
- fix accidently slurped line following a triple-quoted value in a
config-file (messju)
- change default for use_sub_dirs to false (messju)

View File

@@ -328,13 +328,15 @@ class Config_File {
break;
}
}
$booleanize = false;
} else {
/* handle simple value */
$var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', rtrim($match[2]));
$booleanize = $this->booleanize;
}
$this->_set_config_var($vars, $var_name, $var_value, $this->booleanize);
$this->_set_config_var($vars, $var_name, $var_value, $booleanize);
}
/* else unparsable line / means it is a comment / means ignore it */
}