summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-05-19 14:15:51 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-05-19 14:52:32 +0300
commit64f35d46159ffae5279db500a8d7fd72c06e2279 (patch)
tree47dcecfd959287a70ecac0769309660e74f656a6
parent53e11f3b0579e402a08076aa60027897ef41cd96 (diff)
downloadefl-64f35d46159ffae5279db500a8d7fd72c06e2279.tar.gz
efreet: Fix mistakenly inverted behavior in URI handling
Fixes a mistake in commit 78c9a82a142f619ccd0957957351fe0e573de76c 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.
-rw-r--r--src/lib/efreet/efreet_uri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/efreet/efreet_uri.c b/src/lib/efreet/efreet_uri.c
index 54e1d6fad0..de224a6e86 100644
--- a/src/lib/efreet/efreet_uri.c
+++ b/src/lib/efreet/efreet_uri.c
@@ -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';