CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
+ if (!(params->esi_syntax & 0x00000001)) {
+ /*
+ * By default, we will not ESI process an object where
+ * the first non-space character is different from '<'
+ */
+ st = VTAILQ_FIRST(&sp->obj->store);
+ AN(st);
+ for (u = 0; u < st->len; u++) {
+ if (isspace(st->ptr[u]))
+ continue;
+ if (st->ptr[u] == '<')
+ break;
+ WSP(sp, SLT_ESI_xmlerror,
+ "No ESI processing, "
+ "binary object: 0x%02x at pos %u.",
+ st->ptr[u], u);
+ return;
+ }
+ }
+
/* XXX: only if GET ? */
ew = eww;
memset(eww, 0, sizeof eww);
"the backend, so don't increase thoughtlessly.\n",
0,
"4", "restarts" },
+ { "esi_syntax",
+ tweak_uint, &master.esi_syntax, 0, UINT_MAX,
+ "Bitmap controlling ESI parsing code:\n"
+ " 0x00000001 - Don't check if it looks like XML\n"
+ "Use 0x notation and do the bitor in your head :-)\n",
+ 0,
+ "0", "restarts" },
{ "max_esi_includes",
tweak_uint, &master.max_esi_includes, 0, UINT_MAX,
"Maximum depth of esi:include processing."