#190 spaces in filenames appear as %20 in titles

Include_in_3.2
closed-fixed
nobody
htsearch (60)
5
2003-10-27
2003-10-24
No

Subject: Re: [htdig] Spaces in titles

Geoff Hutchison wrote:
>On Wed, 27 Feb 2002, Shawn Willden wrote:
>
>>that transparent) but the titles would be *much* more
readable if they
>>would translate %20s to spaces.
>>
>
>Good point, I'd consider this a bug.

Shawn's fix was to add the following, just before TITLE
added to vars:

if (str->indexOf("%20") >= 0)
// Title is URL encoded. Decode it
decodeURL(*str);

Discussion

  • Lachlan Andrew

    Lachlan Andrew - 2003-10-25

    Logged In: YES
    user_id=663373

    I think it should be placed just after the line which
    converts the URL into a title, and that the check for %20
    should be removed. Any encoded URL should be decoded, but
    explicit titles like "The role of %20 in URLs" should be
    allowed. See the attached patch.

     
  • Lachlan Andrew

    Lachlan Andrew - 2003-10-25
     
  • Lachlan Andrew

    Lachlan Andrew - 2003-10-25
    • status: open --> open-fixed
     
  • Gilles Detillieux

    • status: open-fixed --> closed-fixed
     
  • Gilles Detillieux

    Logged In: YES
    user_id=149687

    Works like a charm! I like your approach better than
    Shawn's too. It should only be applied to filenames. Thank
    you Lachlan!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks