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:33 +00:00
parent ff1878f6cf
commit 7cf1d222ae

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