You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <co...@decus.org> on 1997/09/19 10:45:32 UTC
[PATCH?] for mod_include and redirects
I *think* this corrects an oversight in mod_include. It currently
only processes temporary redirects (what REDIRECT is defined to be)
and not any others.
Opinions?
#ken P-)}
Index: mod_include.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_include.c,v
retrieving revision 1.53
diff -u -r1.53 mod_include.c
--- mod_include.c 1997/09/19 08:39:04 1.53
+++ mod_include.c 1997/09/19 08:41:12
@@ -580,7 +580,7 @@
/* Run it. */
- if (run_sub_req(rr) == REDIRECT) {
+ if (is_HTTP_REDIRECT(run_sub_req(rr))) {
char *location = table_get(rr->headers_out, "Location");
location = escape_html(rr->pool, location);
rvputs(r, "<A HREF=\"", location, "\">", location, "</A>", NULL);