efreet: Fix mistakenly inverted behavior in URI handling

Fixes a mistake in commit 78c9a82a14

The authority part would get placed in the struct member "path",
and vice versa.

Lesson learned: Don't rewrite your patch late at night after
arc has messed it up.
This commit is contained in:
Kai Huuhko 2014-05-19 14:15:51 +03:00
parent 53e11f3b05
commit 64f35d4615
1 changed files with 3 additions and 2 deletions

View File

@ -47,11 +47,12 @@ efreet_uri_decode(const char *full_uri)
/* parse authority */
p++;
if (*p != '/')
if (*p == '/')
{
p++;
if (*p != '/')
if (*p == '/')
{
p++;
for (i = 0; *p != '/' && *p != '?' && *p != '#' && *p != '\0' && i < (_POSIX_HOST_NAME_MAX - 1); p++, i++)
authority[i] = *p;
authority[i] = '\0';