Regitered procs only allow glob in the last position, use a filter if
you need a glob pattern somewhere else. ( just end your filter with
return filter_return to get the same effect as a registered proc).

tom jackson

On Sun, 2004-03-07 at 10:21, Bas Scheffers wrote:
> Hi,
>
> I was just writing a wrapper around static html pages on my server so
> visitors could add comments. ns_register_proc was the chosen method.
>
> I wanted this on /snaps/*/ (but not /snaps itself) and any .html file
> below. I was getting strange behaviour. Firstly, I would expect
> "/snaps/*/" to match "/snaps/whistler/", but not "/snaps/", which it also
> matches. As it is described as "glob style matching", this confuses me, as
> the Tcl "glob" command doesn't behave that way on directories.
>
> More confusing still is that "/snaps/*.html" not only matches
> "/snaps/whister/m_yvr-01.jpg.html", but also "/snaps/whister/"!
>
> I assume that after seeing the request for the directory, AOLserver
> translates this to "/snaps/whistler/index.html" before looking for a
> procedure to match it. Strangly, ns_register_filter does not extend the
> same courtesy to "index.adp", I have not tested if it would for .html
> files.
>
> Not sure if this is a bug or a feature and I don't mind too much,
> especialy since it saved me from the above described problem. But
> consistency would be good and if someone gets some time to update the
> documentation, it would also be worth mentioning.
>
> Cheers,
> Bas.
>
>
> --
> 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.
>


--
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.

Reply via email to