static int proxy_trans(request_rec *r)
{
+#ifndef FIX_15207
void *sconf = r->server->module_config;
proxy_server_conf *conf =
(proxy_server_conf *) ap_get_module_config(sconf, &proxy_module);
int i, len;
struct proxy_alias *ent = (struct proxy_alias *) conf->aliases->elts;
-
+#endif
if (r->proxyreq) {
/* someone has already set up the proxy, it was possibly ourselves
* in proxy_detect
/* fixup before mod_rewrite, so that the proxied url will not
* escaped accidentally by our fixup.
*/
+#ifndef FIX_15207
static const char * const aszSucc[]={ "mod_rewrite.c", NULL };
+#endif
/* handler */
ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST);
const char* newdomain = NULL ;
const char* pathp ;
const char* domainp ;
- const char* pathe ;
- const char* domaine ;
- size_t l1, l2, i, poffs, doffs ;
+ const char* pathe = NULL;
+ const char* domaine = NULL;
+ size_t l1, l2, i, poffs = 0, doffs = 0 ;
int ddiff = 0 ;
int pdiff = 0 ;
char* ret ;
if ( pathp = apr_strmatch(conf->cookie_path_str, str, len) , pathp ) {
pathp += 5 ;
poffs = pathp - str ;
- pathe = strchr(pathp, ';') ;
+ pathe = ap_strchr_c(pathp, ';') ;
l1 = pathe ? (pathe-pathp) : strlen(pathp) ;
pathe = pathp + l1 ;
ent = (struct proxy_alias *)conf->cookie_paths->elts;
if ( domainp = apr_strmatch(conf->cookie_domain_str, str, len) , domainp ) {
domainp += 7 ;
doffs = domainp - str ;
- domaine = strchr(domainp, ';') ;
+ domaine = ap_strchr_c(domainp, ';') ;
l1 = domaine ? (domaine-domainp) : strlen(domainp) ;
domaine = domainp + l1 ;
ent = (struct proxy_alias *)conf->cookie_domains->elts;
* decide on the conversion of this buffer full of data.
* However, chances are that we are not really talking to an
* HTTP/0.9 server, but to some different protocol, therefore
- * the best guess IMHO is to always treat the buffer as "text/*":
+ * the best guess IMHO is to always treat the buffer as "text/x":
*/
ap_xlate_proto_to_ascii(buffer, len);
e = apr_bucket_heap_create(buffer, cntr, NULL, c->bucket_alloc);