fix re-encode uri during redirect
This commit is contained in:
@ -240,7 +240,12 @@ module.exports = function(app) {
|
||||
}
|
||||
|
||||
if (dasherize(challenge.name) !== origChallengeName) {
|
||||
return Observable.just('/challenges/' + dasherize(challenge.name) + '?solution=' + solutionCode);
|
||||
return Observable.just(
|
||||
'/challenges/' +
|
||||
dasherize(challenge.name) +
|
||||
'?solution=' +
|
||||
encodeURIComponent(solutionCode)
|
||||
);
|
||||
}
|
||||
|
||||
// save user does nothing if user does not exist
|
||||
|
@ -197,8 +197,7 @@ module.exports = function(app) {
|
||||
bonfires: bonfires,
|
||||
moment: moment,
|
||||
longestStreak: user.longestStreak,
|
||||
currentStreak: user.currentStreak,
|
||||
encodeURI: encodeURI
|
||||
currentStreak: user.currentStreak
|
||||
});
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user