Skip to content

Commit

Permalink
Merge pull request #19 from srtucker22/patch-1
Browse files Browse the repository at this point in the history
a check to fight XSS nastiness
  • Loading branch information
artwells committed Mar 3, 2015
2 parents 557c0bf + 82ebd08 commit 471c503
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions accounts-guest-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Accounts.removeOldGuests = function (before) {
Meteor.methods({
createGuest: function (email)
{
check(email, Match.OneOf(String, null, undefined));

/* if explicitly disabled, happily do nothing */
if (AccountsGuest.enabled === false){
return true;
Expand Down

0 comments on commit 471c503

Please sign in to comment.