From a0d29e518fa3acd3c4a846e125d5b4c5914baa9a Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 07 Jun 2010 02:47:14 -0400
Subject: [PATCH] - Fix RFC2397 handling in wash_style()
---
program/lib/washtml.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index 923c97e..fcd2839 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -155,10 +155,11 @@
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]));
}
--
Gitblit v1.9.1