forked from extern/egroupware
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:
parent
d6d6272299
commit
6a0c7e2c3d
@ -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; };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user