mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 12:33:29 +01:00
[ticket/10399] Correctly encoding template component urls (3.1)
Correctly encoding template component urls PHPBB3-10399
This commit is contained in:
parent
330b79686a
commit
179543b2c7
@ -4557,9 +4557,9 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
|||||||
'S_SEARCH_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields),
|
'S_SEARCH_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields),
|
||||||
|
|
||||||
'T_ASSETS_PATH' => "{$web_path}assets",
|
'T_ASSETS_PATH' => "{$web_path}assets",
|
||||||
'T_THEME_PATH' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme',
|
'T_THEME_PATH' => "{$web_path}styles/" . rawurlencode($user->theme['theme_path']) . '/theme',
|
||||||
'T_TEMPLATE_PATH' => "{$web_path}styles/" . $user->theme['template_path'] . '/template',
|
'T_TEMPLATE_PATH' => "{$web_path}styles/" . rawurlencode($user->theme['template_path']) . '/template',
|
||||||
'T_SUPER_TEMPLATE_PATH' => (isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? "{$web_path}styles/" . $user->theme['template_inherit_path'] . '/template' : "{$web_path}styles/" . $user->theme['template_path'] . '/template',
|
'T_SUPER_TEMPLATE_PATH' => (isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? "{$web_path}styles/" . rawurlencode($user->theme['template_inherit_path']) . '/template' : "{$web_path}styles/" . rawurlencode($user->theme['template_path']) . '/template',
|
||||||
'T_IMAGES_PATH' => "{$web_path}images/",
|
'T_IMAGES_PATH' => "{$web_path}images/",
|
||||||
'T_SMILIES_PATH' => "{$web_path}{$config['smilies_path']}/",
|
'T_SMILIES_PATH' => "{$web_path}{$config['smilies_path']}/",
|
||||||
'T_AVATAR_PATH' => "{$web_path}{$config['avatar_path']}/",
|
'T_AVATAR_PATH' => "{$web_path}{$config['avatar_path']}/",
|
||||||
@ -4567,14 +4567,14 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
|||||||
'T_ICONS_PATH' => "{$web_path}{$config['icons_path']}/",
|
'T_ICONS_PATH' => "{$web_path}{$config['icons_path']}/",
|
||||||
'T_RANKS_PATH' => "{$web_path}{$config['ranks_path']}/",
|
'T_RANKS_PATH' => "{$web_path}{$config['ranks_path']}/",
|
||||||
'T_UPLOAD_PATH' => "{$web_path}{$config['upload_path']}/",
|
'T_UPLOAD_PATH' => "{$web_path}{$config['upload_path']}/",
|
||||||
'T_STYLESHEET_LINK' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/stylesheet.css',
|
'T_STYLESHEET_LINK' => "{$web_path}styles/" . rawurlencode($user->theme['theme_path']) . '/theme/stylesheet.css',
|
||||||
'T_STYLESHEET_LANG_LINK' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme/' . $user->lang_name . '/stylesheet.css',
|
'T_STYLESHEET_LANG_LINK' => "{$web_path}styles/" . rawurlencode($user->theme['theme_path']) . '/theme/' . $user->lang_name . '/stylesheet.css',
|
||||||
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
|
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
|
||||||
|
|
||||||
'T_THEME_NAME' => $user->theme['theme_path'],
|
'T_THEME_NAME' => rawurlencode($user->theme['theme_path']),
|
||||||
'T_THEME_LANG_NAME' => $user->data['user_lang'],
|
'T_THEME_LANG_NAME' => $user->data['user_lang'],
|
||||||
'T_TEMPLATE_NAME' => $user->theme['template_path'],
|
'T_TEMPLATE_NAME' => $user->theme['template_path'],
|
||||||
'T_SUPER_TEMPLATE_NAME' => (isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? $user->theme['template_inherit_path'] : $user->theme['template_path'],
|
'T_SUPER_TEMPLATE_NAME' => rawurlencode((isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? $user->theme['template_inherit_path'] : $user->theme['template_path']),
|
||||||
'T_IMAGES' => 'images',
|
'T_IMAGES' => 'images',
|
||||||
'T_SMILIES' => $config['smilies_path'],
|
'T_SMILIES' => $config['smilies_path'],
|
||||||
'T_AVATAR' => $config['avatar_path'],
|
'T_AVATAR' => $config['avatar_path'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user