changeset 2077:824dc84315c7

[gaim-migrate @ 2087] Blahblah blah committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 17 Jul 2001 19:19:42 +0000
parents 6778b4b91221
children 0d53e0eb4456
files ChangeLog src/browser.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jul 17 18:52:50 2001 +0000
+++ b/ChangeLog	Tue Jul 17 19:19:42 2001 +0000
@@ -4,6 +4,7 @@
 	* MSN works again
 	* Fixed a little segfault when images are links
 	* Redid the about box again.
+	* Fixed a nice little bug with the manual browser command
 
 version 0.11.0-pre14 (06/17/2001):
 	* Fixed a segfault with Oscar's account confirmation
--- a/src/browser.c	Tue Jul 17 18:52:50 2001 +0000
+++ b/src/browser.c	Tue Jul 17 19:19:42 2001 +0000
@@ -603,7 +603,10 @@
 
 			char command[1024];
 
-			g_snprintf(command, sizeof(command), web_command, url);
+			if ((url[0] == '\"') && (url[strlen(url)-1] == '\"'))
+				g_snprintf(command, sizeof(command), web_command, url);
+			else
+				g_snprintf(command, sizeof(command), "%s \"%s\"", web_command, url);
 
 			args[0] = "sh";
 			args[1] = "-c";