fortify-ps / FortifyBugTrackerUtility

Automated submission of FoD and SSC vulnerabilities to external systems
MIT License
25 stars 14 forks source link

Fixed getting bug link id from tfs url #38

Closed anilkumar1998 closed 4 years ago

anilkumar1998 commented 4 years ago

The existing code assumes that the bug id in tfs url is in the form of https://domain/bla/blabla?id=bugId but this got changed and currently the bug id is in the tfs url is in the format of https://domain/bla/blabla/bugId.

For fixing this, I added some more lines to check if the id is still blank, if yes, then split the deepLinkUrl on '/' and get the last item.