Re: '#' in file url

Jorge Arellano Cid <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Wed, Nov 07, 2012 at 03:20:20AM +0000, corvid wrote:
> 
> I had two files with '#' in their names that I wanted to view --
> file#1.png and file#2.png -- and dillo showed me the same file in
> each tab.

  That's because '#' is not a valid character inside a URL.

  Technically:

/*
 * Regular Expression as given in RFC3986 for URL parsing.
 *
 *  ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
 *   12            3  4          5       6  7        8 9
 *
 *  scheme    = $2
 *  authority = $4
 *  path      = $5
 *  query     = $7
 *  fragment  = $9
 *
 [...]

  i.e. anything after '#' is a 'fragment'.

  and BTW, that's why the file dpi escapes '#' as '%23' to be able
to show the file.

  HTH.

-- 
  Cheers
  Jorge.-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.