Commit fd028085 authored by Steve Frécinaux's avatar Steve Frécinaux

Fix bug 491442 – gedit.commands.load_uri should only accept valid URIs

svn path=/trunk/; revision=5993
parent ddb322ee
2007-11-02 Steve Frécinaux <code@istique.net>
Fix bug 491442 – gedit.commands.load_uri should only accept valid URIs
* gedit/gedit-commands-file.c (gedit_commands_load_uri): check that
the uri is valid before trying to open it.
2007-11-02 Steve Frécinaux <code@istique.net>
Fix bug #491312 – External Tools with two lines as input
......
......@@ -301,17 +301,18 @@ gedit_commands_load_uri (GeditWindow *window,
gint line_pos)
{
GSList *uris = NULL;
g_return_if_fail (GEDIT_IS_WINDOW (window));
g_return_if_fail (uri != NULL);
g_return_if_fail (gedit_utils_is_valid_uri (uri));
gedit_debug_message (DEBUG_COMMANDS, "Loading URI '%s'", uri);
gedit_debug (DEBUG_COMMANDS);
uris = g_slist_prepend (uris, (gchar *)uri);
load_file_list (window, uris, encoding, line_pos, FALSE);
g_slist_free (uris);
g_slist_free (uris);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment