summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-03 08:01:04 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-11-03 08:01:04 +0000
commit4bc77ddecba202ee4d0d2836f80a2f1e38070bf2 (patch)
tree35ddacaef565d689ca098fbeca1f690b5f77368f
parent78f6d81796a2a40b3f3e47b0213107fecfa2e818 (diff)
#1485534: fix (multiple) PRE conversion
git-svn-id: https://svn.roundcube.net/trunk@2031 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/lib/html2text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/html2text.php b/roundcubemail/program/lib/html2text.php
index efc38a630..4180cac28 100644
--- a/roundcubemail/program/lib/html2text.php
+++ b/roundcubemail/program/lib/html2text.php
@@ -543,7 +543,7 @@ class html2text
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);
}
}
}