mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Bugtracker #4415 - add extra checking
This commit is contained in:
parent
23bafc210c
commit
b7f2e6b1b3
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user