summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube
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:27:10 +0100
commita7d42915a4416c37a2c30e8372e54aacafa84444 (patch)
tree67fe7187cf10afaaf73b5804d41b7f2c767a669c /program/lib/Roundcube
parentbd3f5745f06e3d153431776fe279d8534823403a (diff)
Fix infinite loop when converting invalid html to plaintext (#1489566)
Diffstat (limited to 'program/lib/Roundcube')
-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);
}