You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by do...@apache.org on 2001/10/13 03:53:46 UTC
cvs commit: httpd-2.0/modules/experimental mod_example.c
dougm 01/10/12 18:53:46
Modified: modules/experimental mod_example.c
Log:
x_handler() was not checking r->handler, leaving it to handle every request
Revision Changes Path
1.26 +4 -0 httpd-2.0/modules/experimental/mod_example.c
Index: mod_example.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_example.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- mod_example.c 2001/08/06 21:36:32 1.25
+++ mod_example.c 2001/10/13 01:53:46 1.26
@@ -533,6 +533,10 @@
{
x_cfg *dcfg;
+ if (strcmp(r->handler, "example-handler")) {
+ return DECLINED;
+ }
+
dcfg = our_dconfig(r);
trace_add(r->server, r, dcfg, "x_handler()");
/*