]> mj.ucw.cz Git - libucw.git/commit
When we encounter an URL with multiple @'s, the first one should be treated
authorMartin Mares <mj@ucw.cz>
Sat, 9 Jul 2005 09:32:45 +0000 (09:32 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 9 Jul 2005 09:32:45 +0000 (09:32 +0000)
commit7c1f135f887cb0cab4e17cc9b97c1d83e0139ca6
tree6387e7358631395b5896b203dcc07bad75bd49e8
parentf17e1caeeb9f234aa131b98659d16475f9d198bd
When we encounter an URL with multiple @'s, the first one should be treated
as the username separator and the subsequent ones automatically escaped.

Therefore, `http://a@b@c.cz/' is normalized as `http://a@b%40c.cz/'.
It's probably an invalid URL (have to check all the possible loopholes
in the spec yet :) ), but it occurs in the wild anyway, so let's try
to treat them with grace.
lib/url.c