Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix global leak of testAllowed, findTags, findAttribs

  • Loading branch information...
commit 12ecdf2de231e2845d48ad86095018bf747aeedc 1 parent b8e42c6
Jordan Santell authored July 14, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/markdown.js
4  lib/markdown.js
@@ -43,7 +43,7 @@ var stripUnwantedHTML = function(html /*, allowedTags, allowedAttributes, forceP
43 43
             'img': 'src|width|height|alt',
44 44
             'a':   'href',
45 45
             '*':   'title'
46  
-        }, forceProtocol = arguments[3] || false;
  46
+        }, forceProtocol = arguments[3] || false,
47 47
         
48 48
         testAllowed = new RegExp('^('+allowedTags.toLowerCase()+')$'),
49 49
         findTags = /<(\/?)\s*([\w:\-]+)([^>]*)>/g,
@@ -122,4 +122,4 @@ var stripUnwantedHTML = function(html /*, allowedTags, allowedAttributes, forceP
122 122
         }
123 123
             
124 124
     });
125  
-}
  125
+}

0 notes on commit 12ecdf2

Please sign in to comment.
Something went wrong with that request. Please try again.