From f9297794b644dc58d392932c5494e3e22a10b0fd Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 15 Sep 2006 14:08:48 +0000 Subject: implement bare-bone validation for config variables... git-svn-id: file:///svn/phpbb/trunk@6367 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions.php') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 620b64a54a..4aa4f4a2c0 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1971,7 +1971,11 @@ function login_forum_box($forum_data) $template->assign_var('LOGIN_ERROR', $user->lang['WRONG_PASSWORD']); } - page_header(); + page_header($user->lang['LOGIN']); + + $template->assign_vars(array( + 'S_HIDDEN_FIELDS' => build_hidden_fields(array('f' => $forum_data['forum_id']))) + ); $template->set_filenames(array( 'body' => 'login_forum.html') @@ -2658,7 +2662,7 @@ function truncate_string($string, $max_length = 60) $chars = array(); // split the multibyte characters first - $string_ary = preg_split('#(&\#[0-9]+;)#', $string, -1, PREG_SPLIT_DELIM_CAPTURE); + $string_ary = preg_split('/(&#[0-9]+;)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); // Now go through the array and split the other characters foreach ($string_ary as $key => $value) -- cgit v1.2.1