Commit 10a2ab5f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename max_esi_includes param to max_esi_depth and enforce it again.

parent b07804bf
......@@ -55,6 +55,10 @@ ved_include(struct sess *sp, const char *src, const char *host)
w = sp->wrk;
if (sp->esi_level >= params->max_esi_depth)
return;
sp->esi_level++;
if (WRW_Flush(w)) {
vca_close_session(sp, "remote closed");
return;
......@@ -62,7 +66,6 @@ ved_include(struct sess *sp, const char *src, const char *host)
AZ(WRW_FlushRelease(w));
sp->esi_level++;
obj = sp->obj;
sp->obj = NULL;
res_mode = sp->wrk->res_mode;
......
......@@ -136,7 +136,7 @@ struct params {
unsigned max_restarts;
/* Maximum esi:include depth allowed */
unsigned max_esi_includes;
unsigned max_esi_depth;
/* ESI parser hints */
unsigned esi_syntax;
......
......@@ -647,11 +647,11 @@ static const struct parspec input_parspec[] = {
"Use 0x notation and do the bitor in your head :-)\n",
0,
"0", "bitmap" },
{ "max_esi_includes",
tweak_uint, &master.max_esi_includes, 0, UINT_MAX,
{ "max_esi_depth",
tweak_uint, &master.max_esi_depth, 0, UINT_MAX,
"Maximum depth of esi:include processing.\n",
0,
"5", "includes" },
"5", "levels" },
{ "cache_vbcs", tweak_bool, &master.cache_vbcs, 0, 0,
"Cache vbc's or rely on malloc, that's the question.",
EXPERIMENTAL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment