Philippe M. Chiasson wrote:
With apache-1.3, mod_perl users were able to do:

<Perl>
 some code
</Perl>

in httpd-2.0, the configuration parser doesn't like container directives
with no arguments (Syntax error on line nn of httpd.conf: <Perl>
directive missing  closing '>'). So, for now, users have to resort to
using this syntax (note the extra space):

<Perl >
</Perl>

The following patch fixes this little problem:

This patch made its way to the stable httpd-2.0 tree. I hope Sander will pick it for 2.0.48, which should happen really soon now.


Index: server/config.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/server/config.c,v
retrieving revision 1.156.2.6
diff -u -I$Id: -r1.156.2.6 config.c
--- server/config.c 17 Sep 2003 10:30:47 -0000 1.156.2.6
+++ server/config.c 8 Oct 2003 22:10:40 -0000
@@ -926,6 +926,9 @@
if (*lastc == '>') {
*lastc = '\0' ;
}
+ if( cmd_name[0] == '<' && *args == '\0') {
+ args = ">";
+ }
}
newdir = apr_pcalloc(p, sizeof(ap_directive_t));

__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to