summaryrefslogtreecommitdiff
path: root/src/lib/efreet
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 /src/lib/efreet
parent53e11f3b0579e402a08076aa60027897ef41cd96 (diff)
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.
Diffstat (limited to 'src/lib/efreet')
-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)
47 47
48 /* parse authority */ 48 /* parse authority */
49 p++; 49 p++;
50 if (*p != '/') 50 if (*p == '/')
51 { 51 {
52 p++; 52 p++;
53 if (*p != '/') 53 if (*p == '/')
54 { 54 {
55 p++;
55 for (i = 0; *p != '/' && *p != '?' && *p != '#' && *p != '\0' && i < (_POSIX_HOST_NAME_MAX - 1); p++, i++) 56 for (i = 0; *p != '/' && *p != '?' && *p != '#' && *p != '\0' && i < (_POSIX_HOST_NAME_MAX - 1); p++, i++)
56 authority[i] = *p; 57 authority[i] = *p;
57 authority[i] = '\0'; 58 authority[i] = '\0';