Bug #22243 » patch 4.2.12 20100311.diff
t3lib\class.t3lib_div.php 2010-03-11 13:31:53.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(ereg('"$', $v)) { $quoteActive = -1; }
|
||
if(ereg('["\']$', $v)) { $quoteActive = -1; }
|
||
|
||
} elseif(!trim($v)) {
|
||
unset($paramsArr[$k]); // Remove empty elements
|
||
|
||
} elseif(ereg('^"', $v)) {
|
||
} elseif(ereg('^["\'].*[^"\']$', $v)) {
|
||
$quoteActive = $k;
|
||
}
|
||
}
|
||
|
||
if($unQuote) {
|
||
foreach ($paramsArr as $key => &$val) {
|