Changes with Apache 2.0.34-dev
+ *) New Directive SSIUndefinedEcho. to change the '(none)' echoed
+ for a undefined variable. [Ian Holsman]
+
*) Proxy HTTP and CONNECT: Keep trying other addresses from the DNS
when we can't get a socket in the specified address family. We may
have gotten back an IPv6 address first and yet our system is not
<seealso>See also: <directive>SSIStartTag</directive>.</seealso>
</usage>
</directivesynopsis>
+<directivesynopsis>
+<name>SSIUndefinedEcho</name>
+<description>Changes the string that mod_include displays when
+a variable isn't set.</description>
+<syntax>SSIUndefinedEcho <em>tag</em></syntax>
+<default>SSIUndefinedEcho "<-- undef -->"</default>
+<contextlist><context>server config</context>
+<context>virtual host</context></contextlist>
+<override>FileInfo</override>
+<compatibility>Available in version 2.0.34 and later.
+</compatibility>
+
+<usage>
+ <p>This directive changes the string that mod_include displays
+ when a variable is not set and "echoed"
+</usage>
+</directivesynopsis>
<directivesynopsis>
<name>SSIErrorMsg</name>
char *default_end_tag;
int start_tag_len;
bndm_t start_seq_pat;
+ char *undefinedEcho;
+ int undefinedEchoLen;
} include_server_config;
#ifdef XBITHACK
r->pool);
}
else {
- tmp_buck = apr_bucket_immortal_create("(none)",
- sizeof("(none)")-1);
+ include_server_config *sconf=
+ ap_get_module_config(r->server->module_config,
+ &include_module);
+ tmp_buck = apr_bucket_pool_create(sconf->undefinedEcho,
+ sconf->undefinedEchoLen,
+ r->pool);
}
APR_BUCKET_INSERT_BEFORE(head_ptr, tmp_buck);
if (*inserted_head == NULL) {
bndm_compile(&result->start_seq_pat, result->default_start_tag,
result->start_tag_len);
+ result->undefinedEcho = apr_pstrdup(p,"(none)");
+ result->undefinedEchoLen = strlen( result->undefinedEcho);
return result;
}
static const char *set_xbithack(cmd_parms *cmd, void *xbp, const char *arg)
return NULL;
}
+static const char *set_undefined_echo(cmd_parms *cmd, void *mconfig, const char *msg)
+{
+ include_server_config *conf;
+ conf = ap_get_module_config(cmd->server->module_config, &include_module);
+ conf->undefinedEcho = apr_pstrdup(cmd->pool, msg);
+ conf->undefinedEchoLen = strlen(msg);
+
+ return NULL;
+}
+
static const char *set_default_end_tag(cmd_parms *cmd, void *mconfig, const char *msg)
{
"SSI Start String Tag"),
AP_INIT_TAKE1("SSIEndTag", set_default_end_tag, NULL, RSRC_CONF,
"SSI End String Tag"),
+ AP_INIT_TAKE1("SSIUndefinedEcho", set_undefined_echo, NULL, RSRC_CONF,
+ "SSI Start String Tag"),
{NULL}
};