Re: POSTed values have junk appended. Sometimes.
Shugo Maeda <[email protected]> Wed, 24 May 2006 19:50:01 +0900
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, Harmen wrote: > I've noticed 1 change from the original apache request 1.X sourcecode tree: > apache_request.c, in util_read: > 48c48 > < *rbuf = apr_pcalloc(r->pool, length + 1); > --- >> *rbuf = ap_pcalloc(r->pool, length + 1); > (mod_ruby is the one with apr_pcalloc, the original has ap_pcalloc) > > This patch does seems to fix my problem. Anybody any idea why the mod_ruby version > of apacherequest has it changed from ap_pcalloc to apr_pcalloc? It is for Apache2. But I defined apr_pcalloc() badly for Apache1:( Please apply the following patch. Index: mod_ruby.h =================================================================== --- mod_ruby.h (revision 121) +++ mod_ruby.h (working copy) @@ -100,7 +100,7 @@ #include "http_conf_globals.h" #define apr_palloc(p, size) ap_palloc(p, size) -#define apr_pcalloc(p, type) ap_palloc(p, type) +#define apr_pcalloc(p, nbytes) ap_pcalloc(p, nbytes) #define apr_pool_cleanup_register ap_register_cleanup #define apr_pool_cleanup_null ap_null_cleanup #define apr_array_make(p, n, size) ap_make_array(p, n, size) Shugo