Better regexp for detecting quotes in 'entryprops' parameter
This commit is contained in:
parent
830e79d87f
commit
daab40640e
@ -188,7 +188,7 @@ function serendipity_smarty_fetchPrintEntries($params, &$smarty) {
|
||||
}
|
||||
|
||||
if (!empty($params['entryprops'])) {
|
||||
if (preg_match_all('@(.*)(!)?=[\'"]*(.*)[\'"]*(,|$)@imsU', $params['entryprops'], $m)) {
|
||||
if (preg_match_all('@(.*)(!)?=[\'"]*([^\'"]+)[\'"]*(,|$)@imsU', $params['entryprops'], $m)) {
|
||||
foreach($m[0] AS $idx => $p) {
|
||||
$params['joinown'] .= "\n JOIN {$serendipity['dbPrefix']}entryproperties
|
||||
AS ep" . $idx . "
|
||||
|
Loading…
x
Reference in New Issue
Block a user