[Fwd: Bug#201811: [patch] galeon: Last-used directory is ignored if an ampersand ('&') is in the path]

Mark Howard <[email protected]>
Newsgroups gmane.comp.web.galeon.devel
Message-ID <[email protected]>
-----Forwarded Message-----
> From: John Lightsey <[email protected]>
> To: [email protected]
> Cc: [email protected]
> Subject: Bug#201811: [patch] galeon: Last-used directory is ignored if an ampersand ('&') is in the path
> Date: 21 Jul 2003 13:35:45 -0500
> 
> tags 201811 + patch
> thanks
> 
> Galeon pulls the directory path out of a file:// url but doesn't bother to 
> url-decode the result.  If you examine the direcory variable you'll see that 
> ~/rock&roll gets switched to ~/rock%26roll.  Patch attached.
> 
> John Lightsey
> http://www.nixnuts.net/debian-bugs.html
> 
> 
-- 
  .''`. Mark Howard
 : :' :
 `. `'  http://www.tildemh.com
   `-   [email protected] | [email protected] | [email protected]
galeon-5.diff (text/x-patch, 884 B)
diff -ur galeon-1.3.5.20030714.orig/embed/galeon-embed-utils.c galeon-1.3.5.20030714/embed/galeon-embed-utils.c
--- galeon-1.3.5.20030714.orig/embed/galeon-embed-utils.c	2003-07-14 13:21:15.000000000 -0500
+++ galeon-1.3.5.20030714/embed/galeon-embed-utils.c	2003-07-21 13:15:51.000000000 -0500
@@ -32,6 +32,7 @@
 #include <gtk/gtkdialog.h>
 #include <gtk/gtkmessagedialog.h>
 #include <libgnomevfs/gnome-vfs-uri.h>
+#include <libgnomevfs/gnome-vfs-utils.h>
 
 /* FIXME show a message about saved file in complete callback ?*/
 
@@ -143,7 +144,8 @@
                 uri = gnome_vfs_uri_new (retPath);
 		g_return_if_fail (uri != NULL);
 		
-                retDir = gnome_vfs_uri_extract_dirname (uri);
+                retDir = gnome_vfs_unescape_string_for_display(
+				gnome_vfs_uri_extract_dirname (uri));
 
                 if (ask_content && content)
 		{
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.