Project

General

Profile

Bug #22243 » 13750_patch_4.2.12.diff

Administrator Admin, 2010-05-28 13:19

View differences:

t3lib\class.t3lib_div.php 2010-05-04 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(substr($v, -1)==$paramsArr[$quoteActive][0]) { $quoteActive = -1; }
} elseif(!trim($v)) {
unset($paramsArr[$k]); // Remove empty elements
} elseif(ereg('^"', $v)) {
} elseif(ereg('^["\']', $v) && substr($v, -1)!=$v[0]) {
$quoteActive = $k;
}
}
if($unQuote) {
foreach ($paramsArr as $key => &$val) {
(6-6/10)