diff --git a/print.module b/print.module index 1d8331816f75addf945174b8ad046fd65d82db7b..4cca8f30865ef60a071288c640082677938fc418 100644 --- a/print.module +++ b/print.module @@ -478,7 +478,7 @@ function print_rewrite_urls($matches) { for ($i=1; $i < count($attribs); $i++) { // If the attribute is href or src, we may need to rewrite the URL in the value - if (preg_match("/^href|src/i", $attribs[$i]) > 0) { + if (preg_match("/^(href|src)\s*?=/i", $attribs[$i]) > 0) { // We may need to rewrite the URL, so let's isolate it preg_match("/.*?=(.*)/is", $attribs[$i], $urls); $url = trim($urls[1], " \t\n\r\0\x0B\"\'");