mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
Escape the symlink name before constructing the uri. Fixes #84004.
2002-06-13 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-file.c: (nautilus_file_get_symbolic_link_target_uri): Escape the symlink name before constructing the uri. Fixes #84004.
This commit is contained in:
parent
75e48574ec
commit
1ae94a4976
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-06-13 Dave Camp <dave@ximian.com>
|
||||
|
||||
* libnautilus-private/nautilus-file.c:
|
||||
(nautilus_file_get_symbolic_link_target_uri): Escape the symlink
|
||||
name before constructing the uri. Fixes #84004.
|
||||
|
||||
2002-06-12 Damon Chaplin <damon@ximian.com>
|
||||
|
||||
* src/nautilus-property-browser.c (nautilus_property_browser_init):
|
||||
|
|
|
@ -4470,6 +4470,7 @@ nautilus_file_get_symbolic_link_target_uri (NautilusFile *file)
|
|||
{
|
||||
char *file_uri;
|
||||
char *target;
|
||||
char *escaped_name;
|
||||
|
||||
g_return_val_if_fail (nautilus_file_is_symbolic_link (file), NULL);
|
||||
|
||||
|
@ -4477,10 +4478,13 @@ nautilus_file_get_symbolic_link_target_uri (NautilusFile *file)
|
|||
return NULL;
|
||||
} else {
|
||||
file_uri = nautilus_file_get_uri (file);
|
||||
escaped_name = gnome_vfs_escape_path_string
|
||||
(file->details->info->symlink_name);
|
||||
|
||||
target = gnome_vfs_uri_make_full_from_relative
|
||||
(file_uri,
|
||||
file->details->info->symlink_name);
|
||||
(file_uri, escaped_name);
|
||||
g_free (file_uri);
|
||||
g_free (escaped_name);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue