Skip to content

Commit

Permalink
Remove XSS from social groups page - refs #2746
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Dec 3, 2018
1 parent 0af86dc commit 5e61c2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/social/group_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ function add_image_form() {

if ($group_id != 0) {
$group_info = $usergroup->get($group_id);
$group_info['name'] = Security::remove_XSS($group_info['name']);
$group_info['description'] = Security::remove_XSS($group_info['description']);

$interbreadcrumb[] = ['url' => '#', 'name' => $group_info['name']];

Expand Down Expand Up @@ -154,6 +156,8 @@ function add_image_form() {
$socialForum = '';

$group_info = $usergroup->get($group_id);
$group_info['name'] = Security::remove_XSS($group_info['name']);
$group_info['description'] = Security::remove_XSS($group_info['description']);

//Loading group information
if (isset($_GET['status']) && $_GET['status'] == 'sent') {
Expand Down

0 comments on commit 5e61c2b

Please sign in to comment.