Skip to content

Commit

Permalink
Merge pull request #773 from Martii/adminUTFIssues
Browse files Browse the repository at this point in the history
Fix flagging and AuthAs

Auto-merge
  • Loading branch information
Martii committed Oct 20, 2015
2 parents b9f1765 + 666c867 commit 1836ce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,6 @@ exports.authAsUser = function (aReq, aRes, aNext) {

aReq.session.user = user;

aRes.redirect(user.userPageUrl);
aRes.redirect(encodeURI(user.userPageUrl));
});
};
2 changes: 1 addition & 1 deletion controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ exports.flag = function (aReq, aRes, aNext) {
if (aErr || !aUser) { return aNext(); }

fn(User, aUser, aReq.session.user, function (aFlagged) { // NOTE: Inline function here
aRes.redirect('/users/' + username);
aRes.redirect('/users/' + encodeURI(username));
});
});
};

0 comments on commit 1836ce3

Please sign in to comment.