aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_board.php
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-02-15 15:27:09 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-02-15 15:27:09 +0000
commit1d42ad5083a22aea88a2fde806c2e1a27c090507 (patch)
tree6631af1833f42e29dd5e4106f852095f3b7f2e0a /phpBB/admin/admin_board.php
parent3a87c855dc56695c6b161a852d804d062845e9b8 (diff)
downloadforums-1d42ad5083a22aea88a2fde806c2e1a27c090507.tar
forums-1d42ad5083a22aea88a2fde806c2e1a27c090507.tar.gz
forums-1d42ad5083a22aea88a2fde806c2e1a27c090507.tar.bz2
forums-1d42ad5083a22aea88a2fde806c2e1a27c090507.tar.xz
forums-1d42ad5083a22aea88a2fde806c2e1a27c090507.zip
Fix for bug #517442... Disabled HTML in Site_Name and documented in admin.. Also changed so that in both site_name and site_desc "'s are changed to &quot;
git-svn-id: file:///svn/phpbb/trunk@2157 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_board.php')
-rw-r--r--phpBB/admin/admin_board.php5
1 files changed, 3 insertions, 2 deletions
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('"', '&quot;', $new['site_desc']);
+$new['sitename'] = str_replace('"', '&quot;', 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'],