# HG changeset patch
# User renatofilho
# Date 1176412615 -3600
# Node ID c67cec9e60737a8157a34bc709697de79d8c1cd6
# Parent  05e6ab23f892a8090f27aace50a19f71ec1a7a9d
[svn r544] fixed args parse

diff -r 05e6ab23f892 -r c67cec9e6073 gmyth-stream/libgnomevfs2/modules/gmythstream-method.c
--- a/gmyth-stream/libgnomevfs2/modules/gmythstream-method.c	Thu Apr 12 21:57:16 2007 +0100
+++ b/gmyth-stream/libgnomevfs2/modules/gmythstream-method.c	Thu Apr 12 22:16:55 2007 +0100
@@ -167,15 +167,14 @@
 	gboolean open = FALSE;
 	gchar **prop;
     GSList* walk;
-	gchar *uri_str = gnome_vfs_uri_to_string (uri, 
+	gchar *uri_str = gnome_vfs_uri_to_string (uri,
 			GNOME_VFS_URI_HIDE_USER_NAME |
 			GNOME_VFS_URI_HIDE_PASSWORD |
 			GNOME_VFS_URI_HIDE_HOST_NAME |
 			GNOME_VFS_URI_HIDE_HOST_PORT |
-			GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD |
-			GNOME_VFS_URI_HIDE_FRAGMENT_IDENTIFIER);
+			GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD);
 
-	file = gnome_vfs_unescape_string (uri_str, NULL);
+	file = gnome_vfs_unescape_string (uri_str, "");
 	c = file;
 	//skip "/"
 	entry = g_string_new ("");
@@ -189,7 +188,10 @@
 			args = g_slist_append (args, g_strdup (entry->str));
 			entry = g_string_assign (entry, "");
 		} else {
-			g_string_append_c (entry, *c);
+			if (*c == '#')
+				g_string_append (entry, "//");
+			else
+				g_string_append_c (entry, *c);
 		}
 		c = c + 1;
 	} while (*c != '\0');