On Apr 15, 2006, at 4:07 pm, [email protected] wrote:
I'm pretty sure my code below is harmless and appears bug-free...
Well, it would break OpenACS. If such a feature is added, it
should be
optional and configurable.
What I was suggesting was a new optional parameter in config.tcl:
ns_param default_ext ".adp"
which would, in the sample-config.tcl file, be commented out and thus
have no effect. Only if you enable it would this patch take effect.
What I'd like to know is if others would find this feature useful.
-john
ps:
One small bug in what I sent to the list. In case anyone tried to
compile the change and you're using an older C compiler, you need to
move the
char * dotpos;
to the top of the function, like so:
static void
SetUrl(Ns_Request * request, char *url)
{
Ns_DString ds1, ds2;
char *p;
char * dotpos;
otherwise you'll get a compile time error.
-john
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.