8000 Use CVE numbers alone as advisory slugs · hardBox/rubysec.github.com@3e7136f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e7136f

Browse files
committed
Use CVE numbers alone as advisory slugs
1 parent ef3af8e commit 3e7136f

37 files changed

+2
-2
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ email: rubysec-announce@googlegroups.com
2727

2828
# If publishing to a subdirectory as in http://site.com/project set 'root: /project'
2929
root: /
30-
permalink: /advisories/:year/:month/:day/:title/
30+
permalink: /advisories/:title/
3131
source: source
3232
destination: public
3333
plugins: plugins

tasks/sync_advisories.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ task :sync_advisories do
1414
title = yaml['title'].gsub(/\s+/m, ' ')
1515

1616
title = "#{cve}: #{title}"
17-
slug = title.downcase.gsub(/[^\w]+/, '-')
17+
slug = cve
1818

1919
puts "Processing: #{title}"
2020

0 commit comments

Comments
 (0)
0