better handling of escaped quotes
This commit is contained in:
+3
-2
@@ -563,6 +563,7 @@ for ( $i=0; $i < strlen( $sread ); $i++) { $s=$sread[$i];
|
|||||||
// handle anti-double quotes
|
// handle anti-double quotes
|
||||||
else if ($state==GETVALUEDELIMITEDBYQUOTES_ESCAPED) {
|
else if ($state==GETVALUEDELIMITEDBYQUOTES_ESCAPED) {
|
||||||
$state = GETVALUEDELIMITEDBYQUOTES;
|
$state = GETVALUEDELIMITEDBYQUOTES;
|
||||||
|
$inentryvaluedelimitedB = substr($inentryvaluedelimitedB,0,strlen($inentryvaluedelimitedB)-1);
|
||||||
$inentryvaluedelimitedB=$inentryvaluedelimitedB.$s;
|
$inentryvaluedelimitedB=$inentryvaluedelimitedB.$s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2068,8 +2069,8 @@ class BibDataBase {
|
|||||||
if (!$bib->hasField("keywords")) continue;
|
if (!$bib->hasField("keywords")) continue;
|
||||||
$tags =preg_split('/[,;]/', $bib->getField("keywords"));
|
$tags =preg_split('/[,;]/', $bib->getField("keywords"));
|
||||||
foreach($tags as $a){
|
foreach($tags as $a){
|
||||||
$ta = trim($a);
|
$ta = trim($a);
|
||||||
$result[$ta] = $ta;
|
$result[$ta] = $ta;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
asort($result);
|
asort($result);
|
||||||
|
|||||||
Reference in New Issue
Block a user