From 3c537f4e46d699d74d979677d3884f26cef053fb Thu, 6 Dec 2012 23:45:39 +0100 From: hass Date: Thu, 6 Dec 2012 23:44:42 +0100 Subject: [PATCH] #1489132: "Permission restrictions deny" message on many broken links when https securepages diff --git a/linkchecker.module b/linkchecker.module index 8c9a5b5..552e578 100644 --- a/linkchecker.module +++ b/linkchecker.module @@ -971,6 +971,9 @@ // passwords contained in it). This is sufficient for the purposes of // _linkchecker_link_node_ids(), where this information is used. foreach ($link as $original_link) { + // Remove the protocol from the url or it may not possible to match + // relative urls on a http/https site. + $original_link = preg_replace('/\\s*[^:]+:/', '', $original_link, 1); if (strpos($item, $original_link) !== FALSE) { $field_names[$uri][$field_name] = $field_name; }