[ticket/331] Remove EPV errors in code

This commit is contained in:
Marc Alexander
2014-08-17 16:01:53 +02:00
parent 5eceecf442
commit a031bd611e
2 changed files with 3 additions and 10 deletions

View File

@@ -241,7 +241,7 @@ function generate_portal_pagination($base_url, $num_items, $per_page, $start_ite
$template->assign_vars(array(
$tpl_prefix . 'BASE_URL' => $base_url,
'A_' . $tpl_prefix . 'BASE_URL' => addslashes($base_url),
'A_' . $tpl_prefix . 'BASE_URL' => is_string($base_url) ? $base_url : '',
$tpl_prefix . 'PER_PAGE' => $per_page,
$tpl_prefix . 'PREVIOUS_PAGE' => ($on_page == 1) ? '' : $base_url . "{$url_delim}" . $pagination_type . '=' . (($on_page - 2) * $per_page) . $anker,
@@ -357,16 +357,9 @@ function get_portal_tracking_info($fetch_news)
if (!isset($tracking_topics) || !sizeof($tracking_topics))
{
if ($request->is_set($config['cookie_name'] . '_track', \phpbb\request\request_interface::COOKIE))
{
if (STRIP)
{
$tracking_topics = stripslashes($request->variable($config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE));
}
else
{
$tracking_topics = $request->variable($config['cookie_name'] . '_track', '', true, \phpbb\request\request_interface::COOKIE);
}
}
else
{
$tracking_topics = '';

View File

@@ -108,7 +108,7 @@ class stylechanger extends module_base
$url = append_sid("{$this->phpbb_root_path}app.{$this->php_ext}/portal", 'style=' . $row['style_id']);
}
++$style_count;
$style_select .= '<option value="' . $url . '"' . ($row['style_id'] == $this->user->style['style_id'] ? ' selected="selected"' : '') . '>' . htmlspecialchars($row['style_name']) . '</option>';
$style_select .= '<option value="' . $url . '"' . ($row['style_id'] == $this->user->style['style_id'] ? ' selected="selected"' : '') . '>' . utf8_htmlspecialchars($row['style_name']) . '</option>';
}
$this->db->sql_freeresult($result);
if(strlen($style_select))