On Tue, 2009-07-14 at 03:22 -0700, ricardo13 wrote: > Hi, > > Yesterday, I studied mod_rewrite very much and I believe that > fully_qualify_uri() function is where mod_rewrite does proxy. > > That's right ?? This is way ?? > > Other question, I copied fully_qualify_uri() function, but when print value > r->filename give error: > For example, in code: > > r->filename = apr_psprintf(r->pool, "%s://%s%s%s%s", "http", "ip_machine", > "port_machine", r->filename); > > ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf,"MEU_MODULE PROXY: > %s", r->filename); > > In error_log shows: > MEU_MODULE PROXY: > http://ip_machine:port_machine(null)\x18#W\xb7[$\x07\bHl\xef\t\xd4m\xef\t\xdcm\xef\t\x04\n\xef\t > > What's this ? > > Thank you. > Ricardo >
It's called C. Character arrays are null terminated, and if they are not, things that print it tend to keep printing random bits of memory until they happen to hit a null byte. Cheers Tom