mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
9a03326ad6
commit
cc8b842467
1 changed files with 3 additions and 2 deletions
|
@ -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))] = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue