From b7f2e6b1b37cfe0229634e2a0da0b74fddd2e4ef Mon Sep 17 00:00:00 2001 From: e107steved Date: Mon, 26 May 2008 17:58:29 +0000 Subject: [PATCH] Bugtracker #4415 - add extra checking --- e107_handlers/e_parse_class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index a4a5eac73..c58f70691 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ -| $Revision: 1.32 $ -| $Date: 2008-05-23 20:29:04 $ +| $Revision: 1.33 $ +| $Date: 2008-05-26 17:58:29 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -221,6 +221,9 @@ class e_parse $break is the character inserted to flag the break. */ + if (!ctype_digit($width)) return $str; // Don't wrap if non-numeric width + if ($width < 6) return $str; // Trap stupid wrap counts, as well + // Transform protected element lists into arrays $nobreak = explode(" ", strtolower($nobreak));