Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / linkchecker / linkchecker.module
index ccb6ee451f9bc3a5479f0be075dc0a664f9eb72f..0c58da289d1c03c946428f550bca80c7c311c3e8 100644 (file)
@@ -606,7 +606,7 @@ function _linkchecker_status_handling(&$response, $link) {
     && preg_match('/=|\/|,/', $response->getHeader('Link')[1]) == FALSE
     && !in_array($response->getHeader('Link')[1], ['#top'])
     && in_array($response->getHeader('Content-Type'), ['text/html', 'application/xhtml+xml', 'application/xml'])
-    && !preg_match('/(\s[^>]*(name|id)(\s+)?=(\s+)?["\'])(' . preg_quote($response->getHeader('Link')[1], '/') . ')(["\'][^>]*>)/i', $response->getBody())
+    && !preg_match('/(\s[^>]*(name|id)(\s+)?=(\s+)?["\'])(' . preg_quote(urldecode($response->getHeader('Link')[1]), '/') . ')(["\'][^>]*>)/i', $response->getBody())
     ) {
     // Override status code 200 with status code 404 so it can be handled with
     // default status code 404 logic and custom error text.