]> granicus.if.org Git - apache/commitdiff
fix lua_ap_requestbody (bad backport?)
authorDaniel Gruno <humbedooh@apache.org>
Mon, 21 Apr 2014 16:23:32 +0000 (16:23 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Mon, 21 Apr 2014 16:23:32 +0000 (16:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1588915 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c

index 10b491537e7205bc641ccf5345809d138f72362f..9b1926df92804399afd5f12ed6fe9c912f775c2a 100644 (file)
@@ -429,7 +429,7 @@ static int lua_ap_requestbody(lua_State *L)
         if (!filename) {
             const char     *data;
 
-            if (lua_read_body(r, &data, &size) != OK)
+            if (lua_read_body(r, &data, &size, maxSize) != OK)
                 return (0);
 
             lua_pushlstring(L, data, (size_t) size);