diff options
| author | Igor Minar | 2013-02-25 10:02:28 -0800 | 
|---|---|---|
| committer | Igor Minar | 2013-02-25 10:02:50 -0800 | 
| commit | 6c611df8f0a7b3a360fd23d1e68eb8a709e0ce53 (patch) | |
| tree | 08957d886cf6c2bd43c3748db01e4e1fb26f9374 /src/ng/compile.js | |
| parent | 6be24df5bc415d1d059b4e17193898d699fe7a37 (diff) | |
| download | angular.js-6c611df8f0a7b3a360fd23d1e68eb8a709e0ce53.tar.bz2 | |
fix($compile): whitelist file:// in url sanitization
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ng/compile.js b/src/ng/compile.js index 78df5aa8..eb92830d 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -156,7 +156,7 @@ function $CompileProvider($provide) {        COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,        CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,        MULTI_ROOT_TEMPLATE_ERROR = 'Template must have exactly one root element. was: ', -      urlSanitizationWhitelist = /^\s*(https?|ftp|mailto):/; +      urlSanitizationWhitelist = /^\s*(https?|ftp|mailto|file):/;    /** | 
