mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Preserve CVE IDs when producing ChangeLog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user