Prevent write on all depth variables
This commit is contained in:
@@ -897,7 +897,7 @@ Handlebars.JavaScriptCompiler = function() {};
|
||||
item = callback.call(this, stack);
|
||||
|
||||
// Prevent modification of the context depth variable. Through replaceStack
|
||||
if (this.compileStack.length <= 1) {
|
||||
if (/^depth/.test(stack)) {
|
||||
stack = this.nextStack();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user