summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-07 06:47:14 +0000
committeralecpl <alec@alec.pl>2010-06-07 06:47:14 +0000
commita0d29e518fa3acd3c4a846e125d5b4c5914baa9a (patch)
treea3315ce458b5e6c3c5958c8a26a86acec6c2c38b /program/lib
parentcf399284516f54bf89ff84171e997969a2fa259d (diff)
- Fix RFC2397 handling in wash_style()
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/washtml.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index 923c97ece..fcd28395e 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -155,10 +155,11 @@ class washtml
else
$this->extlinks = true;
}
- else if (preg_match('/^data:.+/i', $url)) { // RFC2397
- $value .= ' url('.htmlspecialchars($url, ENT_QUOTES).')';
+ else if (preg_match('/^data:.+/i', $match[2])) { // RFC2397
+ $value .= ' url('.htmlspecialchars($match[2], ENT_QUOTES).')';
}
- } else if ($match[0] != 'url' && $match[0] != 'rbg') //whitelist ?
+ }
+ else if ($match[0] != 'url' && $match[0] != 'rbg') //whitelist ?
$value .= ' ' . $match[0];
$str = substr($str, strlen($match[0]));
}