[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Problems with special characters in filenames shown Repo-Browser

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-07-05 20:35:32 CEST

C. Michael Pilato wrote:
> SteveKing <steveking@gmx.ch> writes:
>
>
>>C. Michael Pilato wrote:
>>
>>>>Sure. The '%' char is used to escape special chars in URL's. So %1
>>>>gets escaped to the the char with bytecode 1.
>>>
>>>Well, if anything, you probably see "%10" being substituted with
>>>whatever bytecode 0x10 (decimal 16) produces. But the point
>>>remains...
>>
>>Right. Of course the next two chars are used for escaping.
>>
>>
>>>>There's nothing TSVN can do about that. Well, it could, but then the
>>>>escaped URL's couldn't be shown and people complained about that too.
>>>
>>>I'm confused. Why exactly can't TSVN do anything about this?
>>
>>If the URL has something like %1000.iso in it (without the '%' being
>>escaped itself), then TSVN can't know that the '%' isn't used as the
>>escape char.
>
>
> Ah, right, of course. But in what ways could the URL have an unescape
> '%' in it? But in Subversion? Bad user input?

The repo browser uses svn_client_ls(), which doesn't return escaped URLs
but filenames. I guess there's something wrong in TSVN - seems we do
some unescaping where we shouldn't.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Jul 5 20:37:53 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.