Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#573, #576, #605, #607 Update Staging #624

Merged
merged 27 commits into from
Apr 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
16912ad
Fixed invalid org server error
wizedkyle Mar 10, 2022
90e5cc0
Updated error message
wizedkyle Mar 10, 2022
baf98ac
Fixed linting
wizedkyle Mar 10, 2022
10f6ca1
Testing CodeQL failures
wizedkyle Mar 11, 2022
91da416
Switched order of onlyCnas
wizedkyle Mar 11, 2022
31f3c8a
add support for rfc3339 date-time
colbyprior Mar 22, 2022
9bb14eb
fix up optional millisecond
colbyprior Mar 22, 2022
020e4ce
#605 Updating validateJsonSyntax logic
wizedkyle Mar 24, 2022
b10757d
Merge pull request #606 from wizedkyle/kj-605
slubar Mar 24, 2022
e78c392
add test for timezone format and allow backwards compatibility
colbyprior Mar 28, 2022
9c73b57
#607 Updated validateJsonSyntax to include catch all
wizedkyle Mar 30, 2022
da3a16c
#607 Merge branch 'dev' into kj/607
wizedkyle Mar 30, 2022
5d67fd1
Merge branch 'dev' into cdp-576
jdaigneau5 Mar 30, 2022
888b07d
Merge pull request #611 from colbyprior/cdp-576
jdaigneau5 Mar 30, 2022
36df9e2
Merge branch 'dev' into kj/607
jdaigneau5 Mar 30, 2022
d251b19
Merge pull request #613 from wizedkyle/kj/607
jdaigneau5 Mar 30, 2022
303024b
modified function to find duplicate lang values
spant-mitre Apr 4, 2022
57f03cc
#573 fixed linting errors
spant-mitre Apr 4, 2022
7fa56ae
Merge branch 'dev' into issue-566
jdaigneau5 Apr 5, 2022
f5d656f
Merge pull request #571 from wizedkyle/issue-566
jdaigneau5 Apr 5, 2022
d25318b
#573 simplified uniqueEnglishDescription function and added tests for…
spant-mitre Apr 7, 2022
358c7ba
573 fixed linting issues
spant-mitre Apr 7, 2022
abe8c94
573 fixed unit test
spant-mitre Apr 7, 2022
7676947
573 fix linting
spant-mitre Apr 7, 2022
dc182d0
Merge branch 'dev' into sp-573
spant-mitre Apr 7, 2022
80f71cf
Merge pull request #617 from CVEProject/sp-573
slubar Apr 8, 2022
cc746a7
Merge pull request #623 from CVEProject/dev
slubar Apr 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/controller/cve-id.controller/cve-id.middleware.js
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ function parsePostParams (req, res, next) {

// Sanitizer for dates
function toDate (val) {
let value = val.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)(Z|((-|\s)\d{2}:\d{2}))$/)
let value = val.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|((-|\s)\d{2}:\d{2}))$/)
let result
if (value) {
value[0] = value[0].replace(' ', '+') // Re-add literal '+' which was stripped
2 changes: 1 addition & 1 deletion src/controller/cve.controller/cve.middleware.js
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ function parseGetParams (req, res, next) {

// Sanitizer for dates
function toDate (val) {
let value = val.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)(Z|((-|\s)\d{2}:\d{2}))$/)
let value = val.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|((-|\s)\d{2}:\d{2}))$/)
let result
if (value) {
value[0] = value[0].replace(' ', '+') // Re-add literal '+' which was stripped