Mercurial > pidgin.yaz
comparison pidgin/plugins/gevolution/gevolution.c @ 18595:f054b6fa9dfc
quote e-mail address before sending it to evolution
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 21 Jul 2007 23:30:59 +0000 |
| parents | ab6d2763b8d8 |
| children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
| 18594:ba0f08ff3a43 | 18595:f054b6fa9dfc |
|---|---|
| 225 { | 225 { |
| 226 char *app = g_find_program_in_path("evolution"); | 226 char *app = g_find_program_in_path("evolution"); |
| 227 if (app != NULL) | 227 if (app != NULL) |
| 228 { | 228 { |
| 229 char *command_line = g_strdup_printf("%s mailto:%s", app, mail); | 229 char *command_line = g_strdup_printf("%s mailto:%s", app, mail); |
| 230 char *quoted = g_shell_quote(command_line); | |
| 230 g_free(app); | 231 g_free(app); |
| 231 g_free(mail); | 232 g_free(mail); |
| 232 | 233 |
| 233 g_spawn_command_line_async(command_line, NULL); | 234 g_spawn_command_line_async(quoted, NULL); |
| 234 g_free(command_line); | 235 g_free(command_line); |
| 236 g_free(quoted); | |
| 235 } | 237 } |
| 236 else | 238 else |
| 237 { | 239 { |
| 238 purple_notify_error(NULL, NULL, _("Unable to send e-mail"), | 240 purple_notify_error(NULL, NULL, _("Unable to send e-mail"), |
| 239 _("The evolution executable was not found in the PATH.")); | 241 _("The evolution executable was not found in the PATH.")); |
