Project

General

Profile

Bug #22243 » 13750_patch_4.3.3.diff

Administrator Admin, 2010-05-28 13:19

View differences:

t3lib\class.t3lib_div.php 2010-05-04 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(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) {
(7-7/10)