mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02: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);
|
egw.debug("log", "Compiled PHP " + _expr + " --> " + js);
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
// if expression does NOT compile use it literally and log an error, but not stop execution
|
// if expression does NOT compile use it literally and log a warning, but not stop execution
|
||||||
egw.debug("error", "Error compiling PHP "+_expr+" --> using it literally ("+
|
egw.debug("warn", "Error compiling PHP "+_expr+" --> using it literally ("+
|
||||||
(typeof e == 'string' ? e : e.message)+")!");
|
(typeof e == 'string' ? e : e.message)+")!");
|
||||||
return function(){ return _expr; };
|
return function(){ return _expr; };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user