-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] support new CVE-YYYY-NNNN* syntax as specified by mitre.org
http://cve.mitre.org/cve/identifiers/syntaxchange.html Conflicts: src/api/db/structure.sql
- Loading branch information
1 parent
02d44ce
commit 31d887c
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class NewCveRegexp < ActiveRecord::Migration | ||
def self.up | ||
t=IssueTracker.find_by_name('cve') | ||
t.regex='(CVE-\d\d\d\d-\d+)' # the only way how it works in ruby AND perl | ||
t.save | ||
Delayed::Job.enqueue IssueTrackersToBackendJob.new | ||
end | ||
|
||
def self.down | ||
t=IssueTracker.find_by_name('cve') | ||
t.regex='(CVE-\d\d\d\d-\d\d\d\d)' | ||
t.save | ||
Delayed::Job.enqueue IssueTrackersToBackendJob.new | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters