diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..707f50a2a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: java + +jdk: + - openjdk8 + +# If your build needs more advanced behavior, see detailed Travis CI instructions: +# https://docs.travis-ci.com/user/languages/java/ + +after_success: + - bash <(curl -s https://copilot.blackducksoftware.com/ci/travis/scripts/upload) diff --git a/README.MD b/README.MD index 39ff0260a..c62bbcd3a 100644 --- a/README.MD +++ b/README.MD @@ -1,3 +1,5 @@ +[![Black Duck Security Risk](https://copilot.blackducksoftware.com/github/repos/ilatypov/WebGoat-Legacy/branches/master/badge-risk.svg)](https://copilot.blackducksoftware.com/github/repos/ilatypov/WebGoat-Legacy/branches/master) + # Important Information Thank you for downloading WebGoat! This is the WebGoat Legacy version which is essentially the WebGoat 5 with a new UI. diff --git a/src/main/webapp/js/goatUtil.js b/src/main/webapp/js/goatUtil.js index f553f711f..8f70b1e4e 100644 --- a/src/main/webapp/js/goatUtil.js +++ b/src/main/webapp/js/goatUtil.js @@ -158,10 +158,13 @@ goat.utils = { var url = $(el).attr('href'); $(el).unbind('click').attr('href','#').attr('link',url); //TODO pull currentMenuId - $(el).click(function() { + $(el).click(function(event) { event.preventDefault(); var _url = $(el).attr('link'); - $.get(_url, {success:showResponse}); + console.log("About to GET " + _url); + $.get(_url) + .done(function(response) {$('#lesson_content').html(response);}) + .fail(function() {alert("failed a GET " + _url);}); } ); });