URL-Parser: fix parsing of Usernames with @
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 12 Jul 2012 20:23:27 +0000 (22:23 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 12 Jul 2012 20:23:27 +0000 (22:23 +0200)
commit52d3843079a4f05c60a19559ab0131a4304871ff
tree4f462acb32c5ad55631493efd50436f54d1091f7
parentf4cf677205c5bfe304a1ba5ca79066adfadcc1f3
URL-Parser: fix parsing of Usernames with @

  - we previously would use strch to find the first @ in the URL
  - when there is an @ inside of the username this one would be hit.
  - since we first search for the end of the host-path, we can search from the right for the last @ to separate the user:auth from the real hostname.
libcitadel/lib/urlhandling.c