On Thu, 13 Nov 2003, Gilles Detillieux wrote:

> Date: Thu, 13 Nov 2003 17:17:24 -0600 (CST)
> From: Gilles Detillieux <[EMAIL PROTECTED]>
> To: Joe R. Jah <[EMAIL PROTECTED]>
> Cc: "ht://Dig mailing list" <[EMAIL PROTECTED]>
> Subject: [htdig] Re: Porting fileSpace.1 from 3.1.6 to 3.2.0b5;)
> 
> According to Joe R. Jah:
> > Hi Gilles,
> > 
> > I have been trying to port fileSpace.1 from 3.1.6 to 3.2.0b5.  At first it
> > appeared to be relatively simple, attached, but:
...
> > Please advise.
> 
> There are a few important internal changes in 3.2 that seem to have
> tripped you up:
> 
> 1) config is no longer a globally declared object, so instead each
>    function must get and use a pointer to the HtConfiguration object.
> 2) most argument passing of char * types was replaced by String &, so
>    if you need to go back to char * handling you need to explicitly
>    declare and set the pointer.
> 3) liberal use of the const type modifier to preserve an idea of what
>    will remain constant, so you have to be careful about using this
>    correctly when declaring and setting pointers.
> 
> Here's a corrected patch, which at least compiles cleanly, though I
> haven't tested it beyond that...
> 
>   ---------------------------------------------------------------
> 
> This patch adds an allow_space_in_url attribute to htdig 3.2.0b5, so
> that you can get htdig to handle URLs that contain embedded spaces.
> Technically, this is a violation of RFC 2396, which says spaces should
> be stripped out (as htdig does by default).  However, many web browsers
> and HTML code generators violate this standard already, so enabling this
> attribute allows htdig to handle these non-compliant URLs.  Even with
> this attribute set, htdig still strips out all white space (leading,
> trailing and embedded), except that space characters embedded within
> the URL will be encoded as %20.
...

Thank you Gilles; it works like a charm; I have put it in the patch site:

  ftp://ftp.ccsf.org/htdig-patches/3.2.0b5/fileSpace.0

I vote +1 to avail this option for 3.2.0.

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to