httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1467719 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Sun, 14 Apr 2013 02:50:20 GMT
Author: fuankg
Date: Sun Apr 14 02:50:19 2013
New Revision: 1467719

URL: http://svn.apache.org/r1467719
Log:
Whoops, one AP_MAX_REG_MATCH not caught.

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1467719&r1=1467718&r2=1467719&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Sun Apr 14 02:50:19 2013
@@ -928,7 +928,7 @@ static int lua_ap_regex(lua_State *L)
     }
     
     lua_newtable(L);
-    for (i = 0; i <= regex.re_nsub && i <= AP_MAX_REG_MATCH; i++) {
+    for (i = 0; i <= regex.re_nsub && i <= MODLUA_MAX_REG_MATCH; i++) {
         lua_pushinteger(L, i);
         if (matches[i].rm_so >= 0 && matches[i].rm_eo >= 0)
             lua_pushstring(L,



Mime
View raw message