From e2e745fb4ee52b11063a1654663c018084584586 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 15 Nov 2008 09:29:45 -0500
Subject: [PATCH] - don't use SORT when SEARCH is better (sort field not specified)
---
program/lib/html2text.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/lib/html2text.php b/program/lib/html2text.php
index efc38a6..4180cac 100644
--- a/program/lib/html2text.php
+++ b/program/lib/html2text.php
@@ -543,7 +543,7 @@
while(preg_match('/<pre[^>]*>(.*)<\/pre>/ismU', $text, $matches))
{
$result = preg_replace($this->pre_search, $this->pre_replace, $matches[1]);
- $text = preg_replace('/<pre[^>]*>.*<\/pre>/ismU', '<div><br>' . $result . '<br></div>', $text);
+ $text = preg_replace('/<pre[^>]*>.*<\/pre>/ismU', '<div><br>' . $result . '<br></div>', $text, 1);
}
}
}
--
Gitblit v1.9.1