From 02d095cae0971d32c0cfcd1c7f32166db846bcda Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 12 Mar 2011 03:38:26 +0100 Subject: [PATCH] Check for 'rel' links should be case insensitive --- midori/midori-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 035fe28f..665823d0 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -4955,7 +4955,7 @@ midori_view_get_previous_page (MidoriView* view) js_context = webkit_web_frame_get_global_context (web_frame); katze_assign (uri, sokoke_js_script_eval (js_context, "(function (l) { for (i in l) " - "if ((l[i].rel && l[i].rel == 'prev') " + "if ((l[i].rel && l[i].rel.toLowerCase () == 'prev') " " || (l[i].innerHTML" " && l[i].innerHTML.toLowerCase ().indexOf ('prev') != -1)) " "{ return l[i].href; } return 0; })(" @@ -4989,7 +4989,7 @@ midori_view_get_next_page (MidoriView* view) js_context = webkit_web_frame_get_global_context (web_frame); katze_assign (uri, sokoke_js_script_eval (js_context, "(function (l) { for (i in l) " - "if ((l[i].rel && l[i].rel == 'next') " + "if ((l[i].rel && l[i].rel.toLowerCase () == 'next') " " || (l[i].innerHTML" " && l[i].innerHTML.toLowerCase ().indexOf ('next') != -1)) " "{ return l[i].href; } return 0; })(" -- 2.39.5