Project

General

Profile

Bug #24377 » 16795.patch

Administrator Admin, 2010-12-21 13:51

View differences:

t3lib/class.t3lib_div.php (working copy)
if ($quoteActive > -1) {
$paramsArr[$quoteActive] .= ' ' . $v;
unset($paramsArr[$k]);
if (preg_match('/"$/', $v)) {
if (substr($v, -1) === $paramsArr[$quoteActive][0]) {
$quoteActive = -1;
}
} elseif (!trim($v)) {
unset($paramsArr[$k]); // Remove empty elements
} elseif (preg_match('/^"/', $v)) {
} elseif (preg_match('/^(["\'])/', $v) && substr($v, -1) !== $v[0]) {
$quoteActive = $k;
}
}
......
if ($unQuote) {
foreach ($paramsArr as $key => &$val) {
$val = preg_replace('/(^"|"$)/', '', $val);
$val = preg_replace('/(^\'|\'$)/', '', $val);
}
}
// return reindexed array
......
}
}
?>
?>
(1-1/2)