Adding fix for #1353

magic_quotes_runtime would double quote the html source of the tags.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3529 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-09-20 15:08:41 +00:00
parent 9a03326ad6
commit cc8b842467

View file

@ -386,13 +386,14 @@ class Helper extends Object {
if ($delimiter > 0) {
$key = strtolower(trim(substr($dataLine, 0, $delimiter)));
$value = trim(substr($dataLine, $delimiter + 1));
$value = trim(stripcslashes(substr($dataLine, $delimiter + 1)));
if (substr($value, 0, 1) == '"' && substr($value, -1) == '"') {
$value = substr($value, 1, -1);
}
$iniSetting[$key] = stripcslashes($value);
$iniSetting[$key] = $value;
} else {
$iniSetting[strtolower(trim($dataLine))] = '';
}