log not compiling PHP expressions as warning, as they are most likely caused by wired content, eg. filenames containing a $

This commit is contained in:
Ralf Becker 2014-07-21 15:27:15 +00:00
parent d6d6272299
commit 6a0c7e2c3d

View File

@ -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; };
}