]> granicus.if.org Git - apache/commitdiff
make r.args read/write for rewrite refugees.
authorEric Covener <covener@apache.org>
Sat, 29 Oct 2011 19:42:32 +0000 (19:42 +0000)
committerEric Covener <covener@apache.org>
Sat, 29 Oct 2011 19:42:32 +0000 (19:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1194997 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/lua/lua_request.c

diff --git a/CHANGES b/CHANGES
index 095674d80edd2584a9c4ccfc5d7f1f169b9f8ac2..d216b3c2592d9f3f97f571d124c41b6738487f18 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,9 @@ Changes with Apache 2.3.15
      PR 51714. [Stefan Fritsch, Jim Jagielski, Ruediger Pluem, Eric Covener,
      <lowprio20 gmail.com>]
 
+
+  *) 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]
 
index b731881fd0cc9c0badcd394d0a00aabee238ecaf..3f33c209aac16c2e5dd8cd649a5dcc52ea843649 100644 (file)
@@ -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);