Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6A909034 for ; Sat, 29 Oct 2011 19:42:56 +0000 (UTC) Received: (qmail 92199 invoked by uid 500); 29 Oct 2011 19:42:56 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 92133 invoked by uid 500); 29 Oct 2011 19:42:56 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 92126 invoked by uid 99); 29 Oct 2011 19:42:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2011 19:42:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Oct 2011 19:42:54 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5BC6D238890B; Sat, 29 Oct 2011 19:42:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1194997 - in /httpd/httpd/trunk: CHANGES modules/lua/lua_request.c Date: Sat, 29 Oct 2011 19:42:33 -0000 To: cvs@httpd.apache.org From: covener@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111029194233.5BC6D238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: covener Date: Sat Oct 29 19:42:32 2011 New Revision: 1194997 URL: http://svn.apache.org/viewvc?rev=1194997&view=rev Log: make r.args read/write for rewrite refugees. Modified: httpd/httpd/trunk/CHANGES httpd/httpd/trunk/modules/lua/lua_request.c Modified: httpd/httpd/trunk/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=1194997&r1=1194996&r2=1194997&view=diff ============================================================================== --- httpd/httpd/trunk/CHANGES [utf-8] (original) +++ httpd/httpd/trunk/CHANGES [utf-8] Sat Oct 29 19:42:32 2011 @@ -12,6 +12,9 @@ Changes with Apache 2.3.15 PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener, ] + + *) mod_lua: Make the query string (r.args) writable. [Eric Covener] + *) mod_include: Add support for application/x-www-form-urlencoded encoding and decoding. [Graham Leggett] Modified: httpd/httpd/trunk/modules/lua/lua_request.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1194997&r1=1194996&r2=1194997&view=diff ============================================================================== --- httpd/httpd/trunk/modules/lua/lua_request.c (original) +++ httpd/httpd/trunk/modules/lua/lua_request.c Sat Oct 29 19:42:32 2011 @@ -486,6 +486,12 @@ static int req_newindex(lua_State *L) return 0; } + if (0 == strcmp("args", key)) { + const char *value = luaL_checkstring(L, 3); + r->args = apr_pstrdup(r->pool, value); + return 0; + } + if (0 == apr_strnatcmp("user", key)) { const char *value = luaL_checkstring(L, 3); r->user = apr_pstrdup(r->pool, value);