Skip to content
Snippets Groups Projects
Commit 0370e467 authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #7310 added xssafe function on noteshort

parent fca93c93
No related branches found
No related tags found
No related merge requests found
...@@ -1187,7 +1187,7 @@ abstract class visa_Abstract extends Database ...@@ -1187,7 +1187,7 @@ abstract class visa_Abstract extends Database
//$noteShort = $request->cut_string($user_notes[$i]['label'], 50); //$noteShort = $request->cut_string($user_notes[$i]['label'], 50);
$noteShort = $request->cut_string(str_replace(array("'", "\r", "\n","\""),array("'", " ", " ", """), $noteShort = $request->cut_string(str_replace(array("'", "\r", "\n","\""),array("'", " ", " ", """),
$user_notes[$i]['label']), 50); $user_notes[$i]['label']), 50);
$noteShort = functions::xssafe($noteShort);
$note = $user_notes[$i]['label']; $note = $user_notes[$i]['label'];
$userArray = $users_tools->get_user($user_notes[$i]['author']); $userArray = $users_tools->get_user($user_notes[$i]['author']);
$date = $request->dateformat($user_notes[$i]['date']); $date = $request->dateformat($user_notes[$i]['date']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment