DevHeads.net

com web/php: Preserve CVE IDs when producing ChangeLog: bin/news2html

Link: <a href="http://git.php.net/?p=web/php.git;a=commitdiff;h=d8e2012418740e9e26f576e25b1f2463739abea5" title="http://git.php.net/?p=web/php.git;a=commitdiff;h=d8e2012418740e9e26f576e25b1f2463739abea5">http://git.php.net/?p=web/php.git;a=commitdiff;h=d8e2012418740e9e26f576e...</a>

Log:
Preserve CVE IDs when producing ChangeLog

Changed paths:
M bin/news2html

Diff:
diff --git a/bin/news2html b/bin/news2html
index 6258b89..5dc8165 100755
--- a/bin/news2html
+++ b/bin/news2html
@@ -62,7 +62,7 @@ foreach($entries as $module => $items) {
echo "<li>$module:\n<ul>\n";
foreach($items as $item) {
// strip author
- $item = preg_replace('/\.\s+\(.+?\)\s*$/', '.', $item);
+ $item = preg_replace('/(\.(\s+\(CVE-\d+-\d+\))?)\s+\(.+?\)\s*$/', '\\1', $item);
// encode HTML
$item = htmlspecialchars($item, ENT_NOQUOTES);
// convert bug numbers