mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10399] Correctly encoding template component urls (3.0)
Changes in style.php PHPBB3-10399
This commit is contained in:
parent
74ae7d0339
commit
1842323ca9
1 changed files with 5 additions and 5 deletions
|
@ -216,10 +216,10 @@ if ($id)
|
||||||
|
|
||||||
// Parse Theme Data
|
// Parse Theme Data
|
||||||
$replace = array(
|
$replace = array(
|
||||||
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme',
|
'{T_THEME_PATH}' => "{$phpbb_root_path}styles/" . rawurlencode($theme['theme_path']) . '/theme',
|
||||||
'{T_TEMPLATE_PATH}' => "{$phpbb_root_path}styles/" . $theme['template_path'] . '/template',
|
'{T_TEMPLATE_PATH}' => "{$phpbb_root_path}styles/" . rawurlencode($theme['template_path']) . '/template',
|
||||||
'{T_IMAGESET_PATH}' => "{$phpbb_root_path}styles/" . $theme['imageset_path'] . '/imageset',
|
'{T_IMAGESET_PATH}' => "{$phpbb_root_path}styles/" . rawurlencode($theme['imageset_path']) . '/imageset',
|
||||||
'{T_IMAGESET_LANG_PATH}' => "{$phpbb_root_path}styles/" . $theme['imageset_path'] . '/imageset/' . $user_image_lang,
|
'{T_IMAGESET_LANG_PATH}' => "{$phpbb_root_path}styles/" . rawurlencode($theme['imageset_path']) . '/imageset/' . $user_image_lang,
|
||||||
'{T_STYLESHEET_NAME}' => $theme['theme_name'],
|
'{T_STYLESHEET_NAME}' => $theme['theme_name'],
|
||||||
'{S_USER_LANG}' => $user['user_lang']
|
'{S_USER_LANG}' => $user['user_lang']
|
||||||
);
|
);
|
||||||
|
@ -248,7 +248,7 @@ if ($id)
|
||||||
$img_data = &$img_array[$img];
|
$img_data = &$img_array[$img];
|
||||||
$imgsrc = ($img_data['image_lang'] ? $img_data['image_lang'] . '/' : '') . $img_data['image_filename'];
|
$imgsrc = ($img_data['image_lang'] ? $img_data['image_lang'] . '/' : '') . $img_data['image_filename'];
|
||||||
$imgs[$img] = array(
|
$imgs[$img] = array(
|
||||||
'src' => $phpbb_root_path . 'styles/' . $theme['imageset_path'] . '/imageset/' . $imgsrc,
|
'src' => $phpbb_root_path . 'styles/' . rawurlencode($theme['imageset_path']) . '/imageset/' . $imgsrc,
|
||||||
'width' => $img_data['image_width'],
|
'width' => $img_data['image_width'],
|
||||||
'height' => $img_data['image_height'],
|
'height' => $img_data['image_height'],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue