libpurple/util.h

branch
uri-escape-unit-test-2
changeset 38737
d85c241e3183
parent 38089
da90fe7312d3
child 38748
17f8a2a8ccba
child 39933
e3c4fde8a94a
--- 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);
+
 /*@}*/
 
 /**************************************************************************

mercurial