1
0
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:
Sara Golemon
2019-06-05 14:15:29 -04:00
parent c5052bab61
commit d8e2012418

View File

@@ -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