forked from AuroraMiddleware/gtk
GtkAboutDialog: Support https in links
https://bugzilla.gnome.org/show_bug.cgi?id=680067
This commit is contained in:
parent
c5d4485a63
commit
992af6c4fe
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user