Commit 23b22fe9 authored by Richard Hughes's avatar Richard Hughes

Show the correct copyright notice when a profile has used markup in the description

parent 03bda577
......@@ -38,12 +38,17 @@
* gcm_utils_linkify:
**/
gchar *
gcm_utils_linkify (const gchar *text)
gcm_utils_linkify (const gchar *hostile_text)
{
guint i;
guint j = 0;
gboolean ret;
GString *string;
gchar *text;
/* Properly escape this as some profiles 'helpfully' put markup in like:
* "Copyright (C) 2005-2010 Kai-Uwe Behrmann <www.behrmann.name>" */
text = g_markup_escape_text (hostile_text, -1);
/* find and replace links */
string = g_string_new ("");
......@@ -73,6 +78,7 @@ gcm_utils_linkify (const gchar *text)
break;
}
}
g_free (text);
return g_string_free (string, FALSE);
}
......
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