Skip to content

Commit d24f81b

Browse files
committed
Add security remove XSS
1 parent 0784dc0 commit d24f81b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/work/view.php

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
api_not_allowed(true);
2020
}
2121

22+
$work['title'] = isset($work['title']) ? Security::remove_XSS($work['title']) : '';
23+
$work['description'] = isset($work['description']) ? Security::remove_XSS($work['description']) : '';
24+
2225
$interbreadcrumb[] = array ('url' => 'work.php', 'name' => get_lang('StudentPublications'));
2326

2427
$my_folder_data = get_work_data_by_id($work['parent_id']);

0 commit comments

Comments
 (0)