Commit ad61bd69 authored by Dan Williams's avatar Dan Williams
Browse files

2005-09-07 Dan Williams <dcbw@redhat.com>

	Patch from Bill Moss <bmoss@clemson.edu>
	* src/applet-dbus.c
		- (nmwa_dbus_filter): strip whitespace from beginning
			and end of VPN login banner


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@949 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 641a001b
2005-09-07 Dan Williams <dcbw@redhat.com>
Patch from Bill Moss <bmoss@clemson.edu>
* src/applet-dbus.c
- (nmwa_dbus_filter): strip whitespace from beginning
and end of VPN login banner
2005-09-07 Dan Williams <dcbw@redhat.com>
* The great VPN Manager rewrite of 2005
......
......@@ -293,8 +293,13 @@ static DBusHandlerResult nmwa_dbus_filter (DBusConnection *connection, DBusMessa
char *vpn_name;
char *banner;
if (dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &vpn_name, DBUS_TYPE_STRING, &banner, DBUS_TYPE_INVALID)) {
if (dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &vpn_name, DBUS_TYPE_STRING, &banner, DBUS_TYPE_INVALID))
{
char *stripped = g_strstrip (g_strdup (banner));
nmwa_schedule_vpn_login_banner_dialog (applet, vpn_name, banner);
g_free (stripped);
/* set the 'last_attempt_success' key in gconf so we DON'T prompt for password next time */
set_vpn_last_attempt_status (applet, vpn_name, TRUE);
}
......
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