Voorkom onverklaarde stack overflow op logging __callerTekst

svn path=/Website/trunk/; revision=32106
This commit is contained in:
Jos Groot Lipman
2016-12-22 11:02:33 +00:00
parent f75c8157f6
commit 60f604f32c

View File

@@ -292,7 +292,7 @@ function __Log(s, optionalCallerOrColor, leave_open)
}
}
function __callerTekst(clr)
function __callerTekst(clr, nesting)
{
if (!clr)
return "";
@@ -300,7 +300,11 @@ function __callerTekst(clr)
cl = cl?"{"+cl+"}":"";
if (!clr.caller)
return cl;
var prnt = __callerTekst(clr.caller);
nesting = nesting || 0;
if (nesting > 20)
return "<Nesting to deep??>"; // Onverklaard. Gezien op GET appl\mgt\prs_perslid.asp?mode=list&model=custom_fields&flexparentkey=55559
var prnt = __callerTekst(clr.caller, nesting + 1);
if (prnt != "")
return (cl||"&lt;anonymous&gt;") + "<br>" + prnt;
else