Skip to content

Commit

Permalink
Merge remote-tracking branch 'github-security/ticket/security-164-alt…
Browse files Browse the repository at this point in the history
…' into prep-release-3.1.1

* github-security/ticket/security-164-alt:
  [ticket/security-164] Correctly format page_name
  [ticket/security-164] Sanitize all global variables in symfony_request class
  • Loading branch information
naderman committed Nov 1, 2014
2 parents c980402 + f534503 commit b6a4f83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/phpbb/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static function extract_current_page($root_path)
$symfony_request_path = $phpbb_filesystem->clean_path($symfony_request->getPathInfo());
if ($symfony_request_path !== '/')
{
$page_name .= $symfony_request_path;
$page_name .= str_replace('%2F', '/', urlencode($symfony_request_path));
}

// current directory within the phpBB root (for example: adm)
Expand Down
3 changes: 3 additions & 0 deletions phpBB/phpbb/symfony_request.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public function __construct(\phpbb\request\request_interface $phpbb_request)

array_walk_recursive($get_parameters, $sanitizer);
array_walk_recursive($post_parameters, $sanitizer);
array_walk_recursive($server_parameters, $sanitizer);
array_walk_recursive($files_parameters, $sanitizer);
array_walk_recursive($cookie_parameters, $sanitizer);

parent::__construct($get_parameters, $post_parameters, array(), $cookie_parameters, $files_parameters, $server_parameters);
}
Expand Down

0 comments on commit b6a4f83

Please sign in to comment.