summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2008-02-04 15:04:10 (GMT)
committer Joao Ventura2008-02-04 15:04:10 (GMT)
commit9c2742b1922d8eaa27e7af131968ba3fe47c1176 (patch)
treec8cabf5b0ead3a6e36daa9c1cd6f4bf1d3cccc90
parent47cfb9f50bce2ae9baedd796d3523848cbe828e5 (diff)
Fix #216716: do not process hreflang attributes
-rw-r--r--print.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.module b/print.module
index 1d83318..4cca8f3 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\"\'");