httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/proxy mod_proxy.c
Date Sat, 22 Feb 2003 18:38:13 GMT
nd          2003/02/22 10:38:13

  Modified:    .        Tag: APACHE_2_0_BRANCH CHANGES
               modules/mappers Tag: APACHE_2_0_BRANCH mod_rewrite.c
               modules/proxy Tag: APACHE_2_0_BRANCH mod_proxy.c
  Log:
  Hook mod_proxy's fixup before mod_rewrite's fixup, so that by
  mod_rewrite proxied URLs will not be escaped accidentally by
  mod_proxy's fixup.
  
  PR: 16368
  Reviewed by: Justin Erenkrantz, Jeff Trawick, Jim Jagielski
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.988.2.41 +4 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.988.2.40
  retrieving revision 1.988.2.41
  diff -u -r1.988.2.40 -r1.988.2.41
  --- CHANGES	22 Feb 2003 18:09:56 -0000	1.988.2.40
  +++ CHANGES	22 Feb 2003 18:38:12 -0000	1.988.2.41
  @@ -1,5 +1,9 @@
   Changes with Apache 2.0.45
   
  +  *) Hook mod_proxy's fixup before mod_rewrite's fixup, so that by
  +     mod_rewrite proxied URLs will not be escaped accidentally by
  +     mod_proxy's fixup. PR 16368  [André Malo]
  +
     *) While processing filters on internal redirects, remember seen EOS
        buckets also in the request structure of the redirect issuer(s). This
        prevents filters (such as mod_deflate) from adding garbage to the
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.135.2.4 +6 -1      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.135.2.3
  retrieving revision 1.135.2.4
  diff -u -r1.135.2.3 -r1.135.2.4
  --- mod_rewrite.c	15 Feb 2003 02:27:22 -0000	1.135.2.3
  +++ mod_rewrite.c	22 Feb 2003 18:38:13 -0000	1.135.2.4
  @@ -4357,6 +4357,11 @@
   
   static void register_hooks(apr_pool_t *p)
   {
  +    /* fixup after mod_proxy, so that the proxied url will not
  +     * escaped accidentally by mod_proxy's fixup.
  +     */
  +    static const char * const aszPre[]={ "mod_proxy.c", NULL };
  +
       APR_REGISTER_OPTIONAL_FN(ap_register_rewrite_mapfunc);
   
       ap_hook_handler(handler_redirect, NULL, NULL, APR_HOOK_MIDDLE);
  @@ -4364,7 +4369,7 @@
       ap_hook_post_config(post_config, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_child_init(init_child, NULL, NULL, APR_HOOK_MIDDLE);
   
  -    ap_hook_fixups(hook_fixup, NULL, NULL, APR_HOOK_FIRST);
  +    ap_hook_fixups(hook_fixup, aszPre, NULL, APR_HOOK_FIRST);
       ap_hook_translate_name(hook_uri2file, NULL, NULL, APR_HOOK_FIRST);
       ap_hook_type_checker(hook_mimetype, NULL, NULL, APR_HOOK_MIDDLE);
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.90.2.2  +6 -1      httpd-2.0/modules/proxy/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/mod_proxy.c,v
  retrieving revision 1.90.2.1
  retrieving revision 1.90.2.2
  diff -u -r1.90.2.1 -r1.90.2.2
  --- mod_proxy.c	3 Feb 2003 17:31:49 -0000	1.90.2.1
  +++ mod_proxy.c	22 Feb 2003 18:38:13 -0000	1.90.2.2
  @@ -1109,6 +1109,11 @@
   
   static void register_hooks(apr_pool_t *p)
   {
  +    /* fixup before mod_rewrite, so that the proxied url will not
  +     * escaped accidentally by our fixup.
  +     */
  +    static const char * const aszSucc[]={ "mod_rewrite.c", NULL };
  +
       /* handler */
       ap_hook_handler(proxy_handler, NULL, NULL, APR_HOOK_FIRST);
       /* filename-to-URI translation */
  @@ -1116,7 +1121,7 @@
       /* walk <Proxy > entries and suppress default TRACE behavior */
       ap_hook_map_to_storage(proxy_map_location, NULL,NULL, APR_HOOK_FIRST);
       /* fixups */
  -    ap_hook_fixups(proxy_fixup, NULL, NULL, APR_HOOK_FIRST);
  +    ap_hook_fixups(proxy_fixup, NULL, aszSucc, APR_HOOK_FIRST);
       /* post read_request handling */
       ap_hook_post_read_request(proxy_detect, NULL, NULL, APR_HOOK_FIRST);
       /* post config handling */
  
  
  

Mime
View raw message