]> granicus.if.org Git - apache/commitdiff
mod_lua: Detect "All" or "None" before putting together a potentially blank (or stati...
authorDaniel Gruno <humbedooh@apache.org>
Fri, 3 Jan 2014 12:09:04 +0000 (12:09 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 3 Jan 2014 12:09:04 +0000 (12:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1555063 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c

index e97c7fb2783d782fd3ec2b250f89f3ec74d8b26a..3b8d7c545b1fb4d059814220960b9e7e7442e1f1 100644 (file)
@@ -649,7 +649,14 @@ static const char* lua_ap_allowoverrides(request_rec* r)
 {
     int opts;
     opts = ap_allow_overrides(r);
-    return apr_psprintf(r->pool, "%s %s %s %s %s %s", (opts&OR_NONE) ? "None" : "", (opts&OR_LIMIT) ? "Limit" : "", (opts&OR_OPTIONS) ? "Options" : "", (opts&OR_FILEINFO) ? "FileInfo" : "", (opts&OR_AUTHCFG) ? "AuthCfg" : "", (opts&OR_INDEXES) ? "Indexes" : "" );
+    if ( (opts & OR_ALL) == OR_ALL) {
+        return "All";
+    }
+    else if (opts == OR_NONE) {
+        return "None";
+    }
+    return apr_psprintf(r->pool, "%s %s %s %s %s", (opts & OR_LIMIT) ? "Limit" : "", (opts & OR_OPTIONS) ? "Options" : "", (opts & OR_FILEINFO) ? "FileInfo" : "", (opts & OR_AUTHCFG) ? "AuthCfg" : "", (opts & OR_INDEXES) ? "Indexes" : "" );
+    
 }
 
 static int lua_ap_started(request_rec* r)