GtkAboutDialog: Support https in links

https://bugzilla.gnome.org/show_bug.cgi?id=680067
This commit is contained in:
Matthias Clasen 2014-08-29 00:51:39 -04:00
parent c5d4485a63
commit 992af6c4fe

View File

@ -2081,6 +2081,9 @@ text_buffer_new (GtkAboutDialog *about,
q1 = strchr (q0, '<');
q2 = q1 ? strchr (q1, '>') : NULL;
r1 = strstr (q0, "http://");
r2 = strstr (q0, "https://");
if (!r1 || (r1 && r2 && r2 < r1))
r1 = r2;
if (r1)
{
r2 = strpbrk (r1, " \n\t>");
@ -2206,6 +2209,9 @@ add_credits_section (GtkAboutDialog *about,
q1 = strchr (q0, '<');
q2 = q1 ? strchr (q1, '>') : NULL;
r1 = strstr (q0, "http://");
r2 = strstr (q0, "https://");
if (!r1 || (r1 && r2 && r2 < r1))
r1 = r2;
if (r1)
{
r2 = strpbrk (r1, " \n\t");