mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
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:
2
NEWS
2
NEWS
@@ -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
|
- fix accidently slurped line following a triple-quoted value in a
|
||||||
config-file (messju)
|
config-file (messju)
|
||||||
- change default for use_sub_dirs to false (messju)
|
- change default for use_sub_dirs to false (messju)
|
||||||
|
@@ -328,13 +328,15 @@ class Config_File {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$booleanize = false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* handle simple value */
|
/* handle simple value */
|
||||||
$var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', rtrim($match[2]));
|
$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 */
|
/* else unparsable line / means it is a comment / means ignore it */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user