mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 20:14:11 +01:00
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
ff1878f6cf
commit
7cf1d222ae
@ -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