Skip to content

Commit 1307b66

Browse files
committed
Remove XSS when add/edit career - refs BT#10295
1 parent 1b320e5 commit 1307b66

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

main/inc/lib/career.lib.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ public function get_status($career_id)
220220
*/
221221
public function save($params, $show_query = false)
222222
{
223+
if (isset($params['description'])) {
224+
$params['description'] = Security::remove_XSS($params['description']);
225+
}
226+
223227
$id = parent::save($params);
224228
if (!empty($id)) {
225229
Event::addEvent(
@@ -249,4 +253,12 @@ public function delete($id)
249253
api_get_user_id()
250254
);
251255
}
256+
257+
public function update($params) {
258+
if (isset($params['description'])) {
259+
$params['description'] = Security::remove_XSS($params['description']);
260+
}
261+
262+
parent::update($params);
263+
}
252264
}

0 commit comments

Comments
 (0)