diff --git a/phpBB/admin/admin_board.php b/phpBB/admin/admin_board.php index b7c324b793..b85256770a 100644 --- a/phpBB/admin/admin_board.php +++ b/phpBB/admin/admin_board.php @@ -126,8 +126,8 @@ $template->set_filenames(array( // Escape any quotes in the site description for proper display in the text // box on the admin page // -$new['site_desc'] = htmlspecialchars($new['site_desc']); -$new['sitename'] = htmlspecialchars($new['sitename']); +$new['site_desc'] = str_replace('"', '"', $new['site_desc']); +$new['sitename'] = str_replace('"', '"', strip_tags($new['sitename'])); $template->assign_vars(array( "S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"), @@ -143,6 +143,7 @@ $template->assign_vars(array( "L_SCRIPT_PATH" => $lang['Script_path'], "L_SCRIPT_PATH_EXPLAIN" => $lang['Script_path_explain'], "L_SITE_NAME" => $lang['Site_name'], + "L_SITE_NAME_EXPLAIN" => $lang['Site_name_explain'], "L_SITE_DESCRIPTION" => $lang['Site_desc'], "L_DISABLE_BOARD" => $lang['Board_disable'], "L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'], diff --git a/phpBB/language/lang_english/lang_admin.php b/phpBB/language/lang_english/lang_admin.php index 534168162c..98bef0fd2b 100644 --- a/phpBB/language/lang_english/lang_admin.php +++ b/phpBB/language/lang_english/lang_admin.php @@ -244,6 +244,7 @@ $lang['Script_path_explain'] = "The path where phpBB2 is located relative to the $lang['Server_port'] = "Server Port"; $lang['Server_port_explain'] = "The port your server is running on, usually 80, only change if different"; $lang['Site_name'] = "Site name"; +$lang['Site_name_explain'] = "No html tags allowed!"; $lang['Site_desc'] = "Site description"; $lang['Board_disable'] = "Disable board"; $lang['Board_disable_explain'] = "This will make the board unavailable to users. Do not logout when you disable the board, you will not be able to log back in!"; @@ -716,4 +717,4 @@ $lang['Install_No_PCRE'] = "phpBB2 Requires the Perl-Compatible Regular Expressi // That's all Folks! // ------------------------------------------------- -?> \ No newline at end of file +?> diff --git a/phpBB/templates/Euclid/admin/admin_config_body.tpl b/phpBB/templates/Euclid/admin/admin_config_body.tpl index a0978180b3..c91f7a9240 100644 --- a/phpBB/templates/Euclid/admin/admin_config_body.tpl +++ b/phpBB/templates/Euclid/admin/admin_config_body.tpl @@ -9,7 +9,7 @@ {L_GENERAL_SETTINGS} - {L_SITE_NAME}: + {L_SITE_NAME}:
{L_SITE_NAME_EXPLAIN} diff --git a/phpBB/templates/subSilver/admin/board_config_body.tpl b/phpBB/templates/subSilver/admin/board_config_body.tpl index 03dc556e31..3bc3d0df6f 100644 --- a/phpBB/templates/subSilver/admin/board_config_body.tpl +++ b/phpBB/templates/subSilver/admin/board_config_body.tpl @@ -20,7 +20,7 @@ - {L_SITE_NAME} + {L_SITE_NAME}
{L_SITE_NAME_EXPLAIN}