Restrictive check for wanted attributes before running SQL command.
for (j = 0; ctx->conf->attrs[j] && strcasecmp(ctx->conf->attrs[j], attr) != 0; j++);
if (!ctx->conf->attrs[j]) return 1;
}
+ for (i = 0; i < in->__sizeattributes; i++) {
+ if ((attr = in->attributes[i]) == NULL) return 1;
+ for (j = 0; ctx->conf->attrs[j] && strcasecmp(ctx->conf->attrs[j], attr) != 0; j++);
+ if (!ctx->conf->attrs[j]) return 1;
+ }
return 0;
}
{
struct SOAP_ENV__Detail *detail;
struct jptype__genericFault *f;
- char *reason,indent[200] = " ";
+ const char *reason;
+ char indent[200] = " ";
char *prefix;
int retval;
#endif
detail->__type = GFNUM;
detail->__any = NULL;
+
+ if (soap->version == 2) soap->fault->SOAP_ENV__Detail = detail;
+ else soap->fault->detail = detail;
}