Skip to content

Commit

Permalink
switched to Gratipay 2.0 team URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Sep 10, 2015
1 parent 2d7528d commit 2f12264
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ npm run protractor

Inspired by the "classic" [BodgeIt Store](https://github.com/psiinon/bodgeit) by [@psiinon](https://github.com/psiinon).

[![Gratipay](http:https://img.shields.io/gratipay/bkimminich.svg)](https://gratipay.com/bkimminich)
[![Gratipay](http:https://img.shields.io/gratipay/bkimminich.svg)](https://gratipay.com/juice-shop)
[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=6283055)](https://www.bountysource.com/trackers/6283055-juice-shop?utm_source=6283055&utm_medium=shield&utm_campaign=TRACKER_BADGE)
[![geeklist](http:https://img.shields.io/badge/geeklist-%5E5-green.svg)](https://geekli.st/bkimminich/i-built-the-juice-shop-broken-full-js-stack-webapp-for-pentesting-and-security-trainings)
[![endorse](https://api.coderwall.com/bkimminich/endorsecount.png)](https://coderwall.com/bkimminich)
Expand Down
2 changes: 1 addition & 1 deletion lib/insecurity.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function hasValidFormat(coupon) {
var redirectWhitelist = [
'https://github.com/bkimminich/juice-shop',
'https://blockchain.info/address/1FXJq5yVANLzR6ZWfqPKhJU3zWT3apnxmN',
'https://gratipay.com/bkimminich',
'https://gratipay.com/juice-shop',
'http:https://flattr.com/thing/3856930/bkimminichjuice-shop-on-GitHub'
];
exports.redirectWhitelist = redirectWhitelist;
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/redirectSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe('/redirect', function () {
});
});

it('should redirect to target URL if https://gratipay.com/bkimminich is contained in it as parameter', function () {
browser.driver.get(browser.baseUrl + '/redirect?to=https://www.owasp.org?trickIndexOf=https://gratipay.com/bkimminich').then(function() {
it('should redirect to target URL if https://gratipay.com/juice-shop is contained in it as parameter', function () {
browser.driver.get(browser.baseUrl + '/redirect?to=https://www.owasp.org?trickIndexOf=https://gratipay.com/juice-shop').then(function() {
expect(browser.driver.getCurrentUrl()).toMatch(/https:\/\/www\.owasp\.org/);
});
});
Expand Down
6 changes: 3 additions & 3 deletions test/server/redirectSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ frisby.create('GET check internet connection before executing these tests')
.expectBodyContains('<title>bkimminich/juice-shop · GitHub</title>')
.toss();

frisby.create('GET redirected to https://gratipay.com/bkimminich when this URL is passed as "to" parameter')
.get(URL + "/redirect?to=https://gratipay.com/bkimminich")
frisby.create('GET redirected to https://gratipay.com/juice-shop when this URL is passed as "to" parameter')
.get(URL + "/redirect?to=https://gratipay.com/juice-shop")
.expectStatus(200)
.expectHeaderContains('content-type', 'text/html')
.expectBodyContains('<title>bkimminich - Gratipay</title>')
.expectBodyContains('<title>juice-shop - Gratipay</title>')
.toss();

frisby.create('GET redirected to https://blockchain.info/address/1FXJq5yVANLzR6ZWfqPKhJU3zWT3apnxmN when this URL is passed as "to" parameter')
Expand Down

0 comments on commit 2f12264

Please sign in to comment.