Skip to content

Commit 08b1ae8

Browse files
committed
Forum: add remove_xss
1 parent f94d9f6 commit 08b1ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/forum/forumfunction.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ function show_add_forum_form($inputvalues = [], $lp_id = 0)
291291

292292
// Dropdown list: Forum categories
293293
$forum_categories = get_forum_categories();
294-
foreach ($forum_categories as $key => $value) {
295-
$forum_categories_titles[$value['cat_id']] = $value['cat_title'];
294+
foreach ($forum_categories as $value) {
295+
$forum_categories_titles[$value['cat_id']] = Security::remove_XSS($value['cat_title']);
296296
}
297297
$form->addElement(
298298
'select',

0 commit comments

Comments
 (0)