1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Bugtracker #4799 - html_truncate() sometimes left incomplete tag - thanks victorcastelan

This commit is contained in:
e107steved
2009-09-03 19:29:11 +00:00
parent f1c94415dc
commit 823d0a6ae3

View File

@@ -9,9 +9,9 @@
* Text processing and parsing functions * Text processing and parsing functions
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
* $Revision: 1.59 $ * $Revision: 1.60 $
* $Date: 2009-09-02 16:39:32 $ * $Date: 2009-09-03 19:29:11 $
* $Author: e107coders $ * $Author: e107steved $
* *
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -637,7 +637,7 @@ class e_parse
break; break;
} }
} }
$ret = ($tmp_pos > 0 ? substr($text, 0, $tmp_pos) : substr($text, 0, $pos)); $ret = ($tmp_pos > 0 ? substr($text, 0, $tmp_pos+1) : substr($text, 0, $pos));
if($pos < strlen($text)) if($pos < strlen($text))
{ {
$ret = $ret.$more; $ret = $ret.$more;