# HG changeset patch # User Eric Warmenhoven # Date 996690805 0 # Node ID 33a3b6b903d97b97850ff4caad3b360de13c5b3d # Parent d37c2220e4dfaa33b65a61cf067e9d521689837a [gaim-migrate @ 2109] this has been bugging me for a while. committer: Tailor Script diff -r d37c2220e4df -r 33a3b6b903d9 src/browser.c --- a/src/browser.c Wed Aug 01 17:52:38 2001 +0000 +++ b/src/browser.c Wed Aug 01 18:33:25 2001 +0000 @@ -603,10 +603,14 @@ char command[1024]; - if ((url[0] == '\"') && (url[strlen(url)-1] == '\"')) + char *ms; + + if (strstr(web_command, "\"%s\"")) g_snprintf(command, sizeof(command), web_command, url); - else - g_snprintf(command, sizeof(command), "%s \"%s\"", web_command, url); + else if ((ms = strstr(web_command, "%s")) != NULL) { + *ms = 0; + g_snprintf(command, sizeof(command), "%s\"%s\"%s", web_command, url, ms + 2); + } args[0] = "sh"; args[1] = "-c";