Bug #24377 » 16795.patch
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
|
||
... | ... | |
}
|
||
}
|
||
|
||
?>
|
||
?>
|