/* Ensure variable state is clean */
while (temp.getRaw()) {
- varState->feedData(temp->unsafeBuf,temp->len);
+ varState->feedData(temp->buf,temp->len);
temp = temp->next;
}
*/
return 0;
- if (strstr (sctusable->content.buf(), "ESI/1.0"))
+ if (strstr (sctusable->content.unsafeBuf(), "ESI/1.0"))
rv = 1;
httpHdrScTargetDestroy (sctusable);
variable = NULL;
if (unevaluatedVariable.size()) {
- varState->feedData(unevaluatedVariable.buf(), unevaluatedVariable.size());
+ varState->feedData(unevaluatedVariable.unsafeBuf(), unevaluatedVariable.size());
char const *result = varState->extractChar ();
/* Consider activating this, when we want to evaluate variables to a
if (!value)
return ESI_PROCESS_COMPLETE;
- varState->addVariable (name.buf(), name.size(), value);
+ varState->addVariable (name.unsafeBuf(), name.size(), value);
value = NULL;
ESIVariableExpression::eval (ESIVarState &state, char const *subref, char const *defaultOnEmpty) const
{
/* XXX: Implement evaluation of the expression */
- ESISegment::ListAppend (state.getOutput(), expression.buf(), expression.size());
+ ESISegment::ListAppend (state.getOutput(), expression.unsafeBuf(), expression.size());
}
#endif /* USE_SQUID_ESI == 1 */
}
size_t openESITags (0);
- char const *currentPos = content.buf();
+ char const *currentPos = content.unsafeBuf();
size_t remainingCount = content.size();
char const *tag = NULL;
ESICustomParser::errorString() const
{
if (error.size())
- return error.buf();
+ return error.unsafeBuf();
else
return "Parsing error strings not implemented";
}
{
String temp;
temp.limitInit(buf, len);
- debugs(86, 9, "ESISegment::dumpOne: \"" << temp.buf() << "\"");
+ debugs(86, 9, "ESISegment::dumpOne: \"" << temp.unsafeBuf() << "\"");
}
#if X_ACCELERATOR_VARY
vary = mem_obj->getReply()->header.getList(HDR_X_ACCELERATOR_VARY);
- if (vary.buf()) {
+ if (vary.unsafeBuf()) {
/* Again, we own this structure layout */
- rep->header.putStr(HDR_X_ACCELERATOR_VARY, vary.buf());
+ rep->header.putStr(HDR_X_ACCELERATOR_VARY, vary.unsafeBuf());
vary.clean();
}