else
rssyl_update_format();
- prefs_toolbar_register_plugin_item(TOOLBAR_MAIN, "RSSyl", _("Refresh all feeds"), rssyl_toolbar_cb_refresh_all_feeds, NULL);
+ prefs_toolbar_register_plugin_item(TOOLBAR_MAIN, PLUGIN_NAME, _("Refresh all feeds"), rssyl_toolbar_cb_refresh_all_feeds, NULL);
if( rssyl_prefs_get()->refresh_on_startup &&
claws_is_starting() )
{
rssyl_opml_export();
- prefs_toolbar_unregister_plugin_item(TOOLBAR_MAIN, "RSSyl", _("Refresh all feeds"));
+ prefs_toolbar_unregister_plugin_item(TOOLBAR_MAIN, PLUGIN_NAME, _("Refresh all feeds"));
rssyl_prefs_done();
rssyl_gtk_done();
g_free(ritem->auth->username);
ritem->auth->username = g_strdup(attr->value);
}
- /* (str) Auth pass */
+ /* (str) Auth pass - save directly to password store */
if (!strcmp(attr->name, "auth_pass")) {
gsize len = 0;
guchar *pwd = g_base64_decode(attr->value, &len);
- g_free(ritem->auth->password);
- ritem->auth->password = (gchar *)pwd;
+ memset(attr->value, 0, strlen(attr->value));
+ rssyl_passwd_set(ritem, (gchar *)pwd);
+ memset(pwd, 0, strlen(pwd));
+ g_free(pwd);
}
/* (str) Official title */
if( !strcmp(attr->name, "official_title")) {
/* (str) Auth user */
if (ri->auth->username != NULL)
xml_tag_add_attr(tag, xml_attr_new("auth_user", ri->auth->username));
- /* (str) Auth pass */
- if (ri->auth->password != NULL) {
- gchar *pwd = g_base64_encode(ri->auth->password, strlen(ri->auth->password));
- xml_tag_add_attr(tag, xml_attr_new("auth_pass", pwd));
- g_free(pwd);
- }
/* (str) Official title */
if( ri->official_title != NULL )
xml_tag_add_attr(tag, xml_attr_new("official_title", ri->official_title));
name = folder_item_get_name(rssyl_get_root_folderitem(item));
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, RSSYL_DIR,
- G_DIR_SEPARATOR_S, name, G_DIR_SEPARATOR_S, item->path, NULL);
+ G_DIR_SEPARATOR_S, name, item->path, NULL);
g_free(name);
return path;
if( rssyl_class.idstr == NULL ) {
rssyl_class.type = F_UNKNOWN;
rssyl_class.idstr = "rssyl";
- rssyl_class.uistr = "RSSyl";
+ rssyl_class.uistr = PLUGIN_NAME;
/* Folder functions */
rssyl_class.new_folder = rssyl_new_folder;