Skip to content
Snippets Groups Projects
Commit 151cdee7 authored by Damien's avatar Damien
Browse files

FIX #3104 Add addslashes for error message

parent e6c594ed
No related branches found
No related tags found
No related merge requests found
......@@ -286,9 +286,8 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST['
}
elseif( $_POST['req'] == 'first_request' && $error_visa_response_project == true)
{
echo "{status : 3, form_content : '<div class=\"h2_title\">" . $visa->errorMessageVisa .
"</div><p class=\"buttons\"><input type=\"button\" onclick=\"destroyModal(\'" . $modalId . "\')\" class=\"button\" value=\"OK\" id=\"submit\" name=\"submit\"></p>',
height : 'auto', width : 'auto', 'mode_frm' : '', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}";
echo "{status : 3, form_content : '<div class=\"h2_title\">" . addslashes($visa->errorMessageVisa) .
"</div><p class=\"buttons\"><input type=\"button\" onclick=\"destroyModal(\'" . $modalId . "\')\" class=\"button\" value=\"OK\" id=\"submit\" name=\"submit\"></p>', height : 'auto', width : 'auto', 'mode_frm' : '', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}";
exit();
}
elseif( $_POST['req'] == 'first_request' && $error_visa_workflow == true)
......
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