Commit: d8e2012418740e9e26f576e25b1f2463739abea5 Author: Sara Golemon <[email protected]> Wed, 5 Jun 2019 14:15:29 -0400 Parents: c5052bab613f996134ee90610bee3ccf045de216 Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d8e2012418740e9e26f576e25b1f2463739abea5 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 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
