mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Fix bug #522413, non-slashing of quotes
git-svn-id: file:///svn/phpbb/trunk@2231 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -557,7 +557,7 @@ switch( $mode )
|
||||
{
|
||||
if($file == $selected['template_name'])
|
||||
{
|
||||
$s_template_select .= '<option value="' . $file . '" selected="1">' . $file . "</option>\n";
|
||||
$s_template_select .= '<option value="' . $file . '" selected="selected">' . $file . "</option>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -730,7 +730,7 @@ switch( $mode )
|
||||
{
|
||||
if(!intval($key) && $key != "0" && $key != "themes_id")
|
||||
{
|
||||
$theme_data .= '$' . $template_name . "[$i]['$key'] = \"$val\";\n";
|
||||
$theme_data .= '$' . $template_name . "[$i]['$key'] = \"" . addslashes($val) . "\";\n";
|
||||
}
|
||||
}
|
||||
$theme_data .= "\n";
|
||||
|
Reference in New Issue
Block a user