diff --git a/src/function/NewTicket.php b/src/function/NewTicket.php index 6853315..57520b0 100644 --- a/src/function/NewTicket.php +++ b/src/function/NewTicket.php @@ -5,8 +5,8 @@ if(isset($_POST['submit'])){ $FormData = array( 'email' => $_POST['email'], - 'subject' => str_rot13($_POST['subject']), - 'content' => str_rot13($_POST['editor']), + 'subject' => $connect->real_escape_string(str_rot13($_POST['subject'])), + 'content' => $connect->real_escape_string(str_rot13($_POST['editor'])), 'department' => $_POST['department'], 'for' => $ClientInfo['hosting_client_key'], 'unique_id' => rand(000000,999999), @@ -68,4 +68,4 @@ else{ header('location: ../'); } -?> \ No newline at end of file +?>