/soc/2013/bhaskar/plugins-window: 5e7f95a8b78a: Fixed a small bu...

Bhaskar Kandiyal bkandiyal at gmail.com
Sun Aug 25 15:30:30 EDT 2013


Changeset: 5e7f95a8b78a901663d808148a61670ec92fc022
Author:	 Bhaskar Kandiyal <bkandiyal at gmail.com>
Date:	 2013-08-26 00:59 +0530
Branch:	 soc.2013.plugins_window
URL: https://hg.pidgin.im/soc/2013/bhaskar/plugins-window/rev/5e7f95a8b78a

Description:

Fixed a small bug in fetching plugin headers

diffstat:

 pidgin/gtkplugin.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff --git a/pidgin/gtkplugin.c b/pidgin/gtkplugin.c
--- a/pidgin/gtkplugin.c
+++ b/pidgin/gtkplugin.c
@@ -820,6 +820,11 @@ webview_download_requested_cb(WebKitWebV
 
 	type = soup_message_headers_get_one(headers, "Purple-Resource-Type");
 
+	if(type == NULL)
+	{
+		type = "plugins";
+	}
+
 	/* Is it safe to use the resource type header as it is when building the filename? */
 	uri = g_build_filename(purple_user_dir(), type, webkit_download_get_suggested_filename(WEBKIT_DOWNLOAD(download)), NULL);
 



More information about the Commits mailing list