Skip to content

Commit

Permalink
Fixed another range error
Browse files Browse the repository at this point in the history
  • Loading branch information
cure53 committed Oct 13, 2014
1 parent 8890759 commit 2f562ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@
*/
var _parseConfig = function(cfg) {

/* Shield configuration object from tampering */
if (typeof cfg !== 'object'){
cfg = {};
}

/* Set configuration parameters */
'ALLOWED_ATTR' in cfg ? ALLOWED_ATTR = cfg.ALLOWED_ATTR : null;
'ALLOWED_TAGS' in cfg ? ALLOWED_TAGS = cfg.ALLOWED_TAGS : null;
Expand Down

0 comments on commit 2f562ba

Please sign in to comment.