Skip to content

Commit

Permalink
#293 - took out &pass= case too
Browse files Browse the repository at this point in the history
Former-commit-id: e300062e3cc6a854af1f79a09f626824b96fbb1d
  • Loading branch information
pliablepixels committed Aug 10, 2016
1 parent c16447c commit 668e6b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/js/DataModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ angular.module('zmApp.controllers')
{
if (val!== undefined)
{
var regex = /"password":".*?"/g;
var regex1 = /"password":".*?"/g;
var regex2 = /&pass=.*?&/g;

//console.log ("VAL IS " + val);
val = val.replace(regex, "<password removed>");
val = val.replace(regex1, "<password removed>");
val = val.replace(regex2, "<password removed>");

}
// make sure password is removed
Expand Down

0 comments on commit 668e6b0

Please sign in to comment.