From afb90f5e94b9abc9062b1a81a1824d1d2a822e8f Mon Sep 17 00:00:00 2001 From: onli Date: Wed, 23 Sep 2020 21:52:46 +0200 Subject: [PATCH] =?UTF-8?q?vgwort=200.4.3:=20Do=20not=20store=20Z=C3=A4hlm?= =?UTF-8?q?arkencode=20with=20;=20at=20the=20end?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serendipity_event_vgwort/ChangeLog | 4 ++++ serendipity_event_vgwort/serendipity_event_vgwort.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/serendipity_event_vgwort/ChangeLog b/serendipity_event_vgwort/ChangeLog index 5c77ca9f..f462e5be 100644 --- a/serendipity_event_vgwort/ChangeLog +++ b/serendipity_event_vgwort/ChangeLog @@ -1,3 +1,7 @@ +Version 0.4.3: +============== +- Do not add ; when storing private Zählmarken code + Version 0.4.2: ============== - Adapt "csv" parser for new zählmarken file diff --git a/serendipity_event_vgwort/serendipity_event_vgwort.php b/serendipity_event_vgwort/serendipity_event_vgwort.php index 4edbc72f..727fea8d 100644 --- a/serendipity_event_vgwort/serendipity_event_vgwort.php +++ b/serendipity_event_vgwort/serendipity_event_vgwort.php @@ -16,7 +16,7 @@ class serendipity_event_vgwort extends serendipity_event { $propbag->add('description', PLUGIN_EVENT_VGWORT_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Malte Paskuda'); - $propbag->add('version', '0.4.2'); + $propbag->add('version', '0.4.3'); $propbag->add('requirements', array( 'serendipity' => '2.2.1' )); @@ -83,7 +83,7 @@ class serendipity_event_vgwort extends serendipity_event { if ($counterPublic[1]) { $publicCounters[] = $counterPublic[1]; } - preg_match('@;Privater Identifikationscode:;(.*);?@', $line, $counterPrivate); + preg_match('@;Privater Identifikationscode:;([^;]*);?@', $line, $counterPrivate); if ($counterPrivate) { $privateCounters[] = $counterPrivate[1]; }