mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths
This commit is contained in:
@@ -2572,8 +2572,8 @@ irc_server_gnutls_callback (void *data, gnutls_session_t tls_session,
|
||||
weechat_dir = weechat_info_get ("weechat_dir", "");
|
||||
cert_path1 = weechat_string_replace (cert_path0, "%h", weechat_dir);
|
||||
cert_path2 = (cert_path1) ?
|
||||
weechat_string_replace (cert_path1, "~", getenv ("HOME")) : NULL;
|
||||
|
||||
weechat_string_expand_home (cert_path1) : NULL;
|
||||
|
||||
if (cert_path2)
|
||||
{
|
||||
cert_str = weechat_file_get_content (cert_path2);
|
||||
|
||||
Reference in New Issue
Block a user