kuuko pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=64f35d46159ffae5279db500a8d7fd72c06e2279

commit 64f35d46159ffae5279db500a8d7fd72c06e2279
Author: Kai Huuhko <[email protected]>
Date:   Mon May 19 14:15:51 2014 +0300

    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.
---
 src/lib/efreet/efreet_uri.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/efreet/efreet_uri.c b/src/lib/efreet/efreet_uri.c
index 54e1d6f..de224a6 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';

-- 


Reply via email to