From b6a8d5b5fa994c85c571f57c56fd04d062e6f9dd Mon Sep 17 00:00:00 2001 From: e107steved Date: Tue, 31 Jul 2007 20:10:55 +0000 Subject: [PATCH] Allow underscore in bbcode names --- e107_handlers/bbcode_handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_handlers/bbcode_handler.php b/e107_handlers/bbcode_handler.php index a64a602c3..8f597905f 100644 --- a/e107_handlers/bbcode_handler.php +++ b/e107_handlers/bbcode_handler.php @@ -12,8 +12,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/bbcode_handler.php,v $ -| $Revision: 1.9 $ -| $Date: 2007-05-01 19:48:22 $ +| $Revision: 1.10 $ +| $Date: 2007-07-31 20:10:44 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -82,7 +82,7 @@ class e_bbcode { $strip_array = explode(',',$bb_strip); } - $pattern = '#^\[(/?)([A-Za-z]+)(\d*)([=:]?)(.*?)]$#i'; // Pattern to split up bbcodes + $pattern = '#^\[(/?)([A-Za-z_]+)(\d*)([=:]?)(.*?)]$#i'; // Pattern to split up bbcodes // $matches[0] - same as the input text // $matches[1] - '/' for a closing tag. Otherwise empty string // $matches[2] - the bbcode word