[Remove entries to the current 2.0 section below, when backported]
+ *) Forward port of mod_actions' ability to handle arbitrary methods
+ with the Script directive. [André Malo]
+
*) mod_auth_digest no longer tries to guess AuthDigestDomain, if it's
not specified. Now it assumes "/" as already documented. PR 16937.
[André Malo]
const char *method, const char *script)
{
action_dir_config *m = (action_dir_config *)m_v;
- int methnum;
+
+ /* ap_method_register recognizes already registered methods,
+ * so don't bother to check its previous existence explicitely.
+ */
+ int methnum = ap_method_register(cmd->pool, method);
- methnum = ap_method_number_of(method);
- if (methnum == M_TRACE)
+ if (methnum == M_TRACE) {
return "TRACE not allowed for Script";
- else if (methnum == M_INVALID)
- return "Unknown method type for Script";
- else
- m->scripted[methnum] = script;
+ }
+ else if (methnum == M_INVALID) {
+ return apr_pstrcat(cmd->pool, "Could not register method '", method,
+ "' for Script", NULL);
+ }
+ m->scripted[methnum] = script;
m->configured = 1;
+
return NULL;
}