From 9a0ca3d334396940cc32ed153ccdfef76ece8d9e Mon Sep 17 00:00:00 2001 From: David M Date: Wed, 18 Oct 2006 23:58:31 +0000 Subject: - typo in functions.php - #4826 git-svn-id: file:///svn/phpbb/trunk@6510 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_profile.php | 6 ++++++ phpBB/includes/functions.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 4862d3ead0..03b1cf3b82 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -365,6 +365,12 @@ class acp_profile $cp->vars['lang_explain'] = request_var('lang_explain', $field_row['lang_explain'], true); $cp->vars['lang_default_value'] = request_var('lang_default_value', $field_row['lang_default_value'], true); + + if (strlen($cp->vars['field_ident']) > 17) + { + $error[] = $user->lang['INVALID_FIELD_IDENT_LEN']; + } + // Field option... if (isset($_REQUEST['field_option'])) { diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6b04f315b1..58f5c5e4a6 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -586,7 +586,7 @@ if (!function_exists('realpath')) // @todo If the file exists fine and open_basedir only has one path we should be able to prepend it // because we must be inside that basedir, the question is where... - // @interal The slash in is_dir() gets around an open_basedir restriction + // @internal The slash in is_dir() gets around an open_basedir restriction if (!@file_exists($resolved) || (!is_dir($resolved . '/') && !is_file($resolved))) { return false; -- cgit v1.2.1