From 6a0c7e2c3de0daa565f499318e4c178daeccb831 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Jul 2014 15:27:15 +0000 Subject: [PATCH] log not compiling PHP expressions as warning, as they are most likely caused by wired content, eg. filenames containing a $ --- etemplate/js/et2_core_phpExpressionCompiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_core_phpExpressionCompiler.js b/etemplate/js/et2_core_phpExpressionCompiler.js index 558f35a172..a60a055910 100644 --- a/etemplate/js/et2_core_phpExpressionCompiler.js +++ b/etemplate/js/et2_core_phpExpressionCompiler.js @@ -430,8 +430,8 @@ egw.debug("log", "Compiled PHP " + _expr + " --> " + js); } catch(e) { - // if expression does NOT compile use it literally and log an error, but not stop execution - egw.debug("error", "Error compiling PHP "+_expr+" --> using it literally ("+ + // if expression does NOT compile use it literally and log a warning, but not stop execution + egw.debug("warn", "Error compiling PHP "+_expr+" --> using it literally ("+ (typeof e == 'string' ? e : e.message)+")!"); return function(){ return _expr; }; }