To save us all the hassle, just flat out reject this silliness. We could
treat blank as ".", but let the user shoot themselves in the foot
explicitly (and don't give them any ideas on how to do it).
PR: 8472
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94790
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.36
+ *) Reject a blank UserDir directive since it is ambiguous. PR 8472.
+ [Justin Erenkrantz]
+
*) Make mod_mime use case-insensitive matching when examining
extensions on all platforms. PR 8223. [Justin Erenkrantz]
char *kw = ap_getword_conf(cmd->pool, &usernames);
apr_table_t *usertable;
+ /* Since we are a raw argument, it is possible for us to be called with
+ * zero arguments. So that we aren't ambiguous, flat out reject this.
+ */
+ if (*kw == '\0') {
+ return "UserDir requires an argument.";
+ }
+
/*
* Let's do the comparisons once.
*/