aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/parse.js
diff options
context:
space:
mode:
authorChirayu Krishnappa2013-10-14 16:05:53 -0700
committerIgor Minar2013-10-15 06:43:19 -0700
commit6d324c76f0d3ad7dae69ce01b14e0564938fb15e (patch)
tree6def7f8220edfe8412a8a10df67d4efeb39f2aa4 /src/ng/parse.js
parent3aefd3a4f0c9f6eba54b2e4f7a13c5621436df7d (diff)
downloadangular.js-6d324c76f0d3ad7dae69ce01b14e0564938fb15e.tar.bz2
fix($parse): check function call context to be safe
Closes #4417
Diffstat (limited to 'src/ng/parse.js')
-rw-r--r--src/ng/parse.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ng/parse.js b/src/ng/parse.js
index 40344256..f6c85358 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -754,6 +754,7 @@ Parser.prototype = {
}
var fnPtr = fn(scope, locals, context) || noop;
+ ensureSafeObject(context, parser.text);
ensureSafeObject(fnPtr, parser.text);
// IE stupidity! (IE doesn't have apply for some native functions)