Re: [htdig3-dev] Stripping out all CGI query strings.


Subject: Re: [htdig3-dev] Stripping out all CGI query strings.
From: J. op den Brouw (MSQL_User@st.hhs.nl)
Date: Mon Mar 06 2000 - 02:29:08 PST


Maybe it's better to write a wrapper script that will do the
stripping for you. There are examples everywhere.
That way you'll leave htsearch intact.

Patrick wrote:
>
> Could someone give me some insight as to where I can begin
> to write a patch that will allow the ability to "remove all
> query string (anything after the '?') variables"?
>
> My initial guess is within Retriever.cc, in the Retriever::Initial
> function, immediately after:
>
> url = u.get();
>
> ..then, if a certain config setting is true, perform something
> similar to the Perl equivalent of:
>
> url =~ s/\?.*$//;
>
> Any help is appreciated.

--jesse
----------------------------------------------------------------------
J. op den brouw Johanna Westerdijkplein 75
Haagse Hogeschool 2521 EN DEN HAAG
Faculty of Engineering The Netherlands
Electrical Engineering +31-70-4458936
----------------------------------------------------------------------
           Linux - because reboots are for hardware changes

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Mon Mar 06 2000 - 02:34:20 PST