Better regexp for detecting quotes in 'entryprops' parameter

This commit is contained in:
Garvin Hicking 2009-02-26 10:30:20 +00:00
parent 830e79d87f
commit daab40640e

View File

@ -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 . "