--- a/libpurple/util.h Thu Sep 28 20:41:27 2017 -0500 +++ b/libpurple/util.h Fri Sep 29 18:48:51 2017 +0200 @@ -1330,6 +1330,17 @@ */ GList *purple_uri_list_extract_filenames(const gchar *uri_list); +/** + * This function escapes any characters that might be interpreted by the shell + * when executing a program to open a URI on some systems. + * + * @param unescaped The unescaped URI. + * + * @return A newly allocated string with any shell metacharacters replaced with + * their escaped equivalents. + */ +char *purple_uri_escape_for_open(const char *unescaped); + /*@}*/ /**************************************************************************