From c2e697fe8170b2fe014f391874e00c1ee27f40bc Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 24 Sep 2009 09:50:31 -0400
Subject: [PATCH] - added Chrome detection (#1486163)
---
program/lib/washtml.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index efd525d..01b0488 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -171,7 +171,7 @@
$key = strtolower($key);
$value = $node->getAttribute($key);
if(isset($this->_html_attribs[$key]) ||
- ($key == 'href' && preg_match('/^(http|https|ftp|mailto):.+/i', $value)))
+ ($key == 'href' && preg_match('/^(http:|https:|ftp:|mailto:|#).+/i', $value)))
$t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
else if($key == 'style' && ($style = $this->wash_style($value)))
$t .= ' style="' . $style . '"';
--
Gitblit v1.9.1