Skip to content

Commit 5e61c2b

Browse files
committed
Remove XSS from social groups page - refs #2746
1 parent 0af86dc commit 5e61c2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/social/group_view.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ function add_image_form() {
110110

111111
if ($group_id != 0) {
112112
$group_info = $usergroup->get($group_id);
113+
$group_info['name'] = Security::remove_XSS($group_info['name']);
114+
$group_info['description'] = Security::remove_XSS($group_info['description']);
113115

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

@@ -154,6 +156,8 @@ function add_image_form() {
154156
$socialForum = '';
155157

156158
$group_info = $usergroup->get($group_id);
159+
$group_info['name'] = Security::remove_XSS($group_info['name']);
160+
$group_info['description'] = Security::remove_XSS($group_info['description']);
157161

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

0 commit comments

Comments
 (0)