forked from enlightenment/efl
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:
parent
53e11f3b05
commit
64f35d4615
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue