Project

General

Profile

Bug #22243 » patch 4.3.2 20100311.diff

Administrator Admin, 2010-03-11 13:43

View differences:

t3lib\class.t3lib_div.php 2010-03-11 12:54:17.000000000 +-0100
$quoteActive = -1; // Whenever a quote character (") is found, $quoteActive is set to the element number inside of $params. A value of -1 means that there are not open quotes at the current position.
foreach ($paramsArr as $k => $v) {
if($quoteActive > -1) {
$paramsArr[$quoteActive] .= ' '.$v;
unset($paramsArr[$k]);
if(preg_match('/"$/', $v)) { $quoteActive = -1; }
if(preg_match('/["\']$/', $v)) { $quoteActive = -1; }
} elseif(!trim($v)) {
unset($paramsArr[$k]); // Remove empty elements
} elseif(preg_match('/^"/', $v)) {
} elseif(preg_match('/^["\'].*[^"\']$/', $v)) {
$quoteActive = $k;
}
}
if($unQuote) {
foreach ($paramsArr as $key => &$val) {
(2-2/10)