summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_html2text.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-02-04 10:22:29 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-02-04 10:23:08 +0100
commiteecd9ce0f908ffdff10613a0e2c55f2c28f093dc (patch)
tree37ce31e17cf3894c4b187bd74c725ebe0cae3a4c /program/lib/Roundcube/rcube_html2text.php
parent774deaded1bc782b6a2670720e0fde3c7df7cde4 (diff)
Fix infinite loop when converting invalid html to plaintext (#1489566)
Diffstat (limited to 'program/lib/Roundcube/rcube_html2text.php')
-rw-r--r--program/lib/Roundcube/rcube_html2text.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_html2text.php b/program/lib/Roundcube/rcube_html2text.php
index 01362e6fb..3b4508da9 100644
--- a/program/lib/Roundcube/rcube_html2text.php
+++ b/program/lib/Roundcube/rcube_html2text.php
@@ -616,6 +616,10 @@ class rcube_html2text
break;
}
+ // abort on invalid tag structure (e.g. no closing tag found)
+ else {
+ break;
+ }
}
while ($end || $next);
}