httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodent of Unusual Size <c...@hyperreal.org>
Subject cvs commit: apachen/src/modules/standard mod_include.c
Date Fri, 19 Sep 1997 17:25:45 GMT
coar        97/09/19 10:25:14

  Modified:    src/modules/standard mod_include.c
  Log:
  	Correct invalid assumption that REDIRECT covers all possible
  	redirection HTTP status codes.
  
  Reviewed by:	Roy Fielding
  
  Revision  Changes    Path
  1.54      +3 -1      apachen/src/modules/standard/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /export/home/cvs/apachen/src/modules/standard/mod_include.c,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- mod_include.c	1997/09/19 08:39:04	1.53
  +++ mod_include.c	1997/09/19 17:25:10	1.54
  @@ -553,6 +553,7 @@
   static int include_cgi(char *s, request_rec *r)
   {
       request_rec *rr = sub_req_lookup_uri(s, r);
  +    int rr_status;
   
       if (rr->status != HTTP_OK) {
           return -1;
  @@ -580,7 +581,8 @@
   
       /* Run it. */
   
  -    if (run_sub_req(rr) == REDIRECT) {
  +    rr_status = run_sub_req(rr);
  +    if (is_HTTP_REDIRECT(rr_status)) {
           char *location = table_get(rr->headers_out, "Location");
           location = escape_html(rr->pool, location);
           rvputs(r, "<A HREF=\"", location, "\">", location, "</A>", NULL);
  
  
  

Mime
View raw message