@@ -65,12 +65,12 @@ function make_task($ajax_req)
6565 if ($ task ['ID ' ] && $ task ['COMPLETED ' ] =='2 ' ) {
6666 $ send ['comments ' ] = xlt ('This fax has already been sent. ' )." " .
6767 xlt ('If you made changes and want to re-send it, delete the original (in Communications) or wait 60 seconds, and try again. ' )." " .
68- xlt ('Filename ' ).": " .$ filename ;
68+ xlt ('Filename ' ).": " . text ( $ filename) ;
6969 echo json_encode ($ send );
7070 exit ;
7171 } else if ($ task ['ID ' ] && $ task ['COMPLETED ' ] =='1 ' ) {
7272 if ($ task ['DOC_TYPE ' ] == 'Fax ' ) {
73- $ send ['DOC_link ' ] = "<a href=' " .$ webroot ."/openemr/controller.php?document&view&patient_id= " .$ task ['PATIENT_ID ' ]."&doc_id= " .$ task ['DOC_ID ' ]."'
73+ $ send ['DOC_link ' ] = "<a href=' " .$ webroot ."/openemr/controller.php?document&view&patient_id= " .attr ( $ task ['PATIENT_ID ' ]) ."&doc_id= " .attr ( $ task ['DOC_ID ' ]) ."'
7474 target='_blank' title=' " .xla ('View the Summary Report sent to Fax Server. ' )."'>
7575 <i class='fa fa-file-pdf-o fa-fw'></i></a>
7676 <i class='fa fa-repeat fa-fw'
@@ -94,8 +94,8 @@ function make_task($ajax_req)
9494 } else if (!$ task ['ID ' ]) {
9595 $ sql = "INSERT into form_taskman
9696 (REQ_DATE, FROM_ID, TO_ID, PATIENT_ID, DOC_TYPE, DOC_ID, ENC_ID) VALUES
97- (NOW(), ' $ from_id ', ' $ to_id ',' $ patient_id ',' $ doc_type ',' $ doc_id ',' $ enc ' ) " ;
98- sqlQuery ($ sql );
97+ (NOW(), ?, ?, ?, ?, ?, ? ) " ;
98+ sqlQuery ($ sql, array ( $ from_id , $ to_id , $ patient_id , $ doc_type , $ doc_id , $ enc ) );
9999 } else {
100100 $ send ['comments ' ] = xlt ('Currently working on making this document ' )."... \n" ;
101101 }
@@ -121,7 +121,7 @@ function process_tasks($task)
121121
122122 if ($ task ['DOC_TYPE ' ] == "Fax " ) {
123123 //now return any objects you need to Eye Form
124- $ send ['DOC_link ' ] = "<a href=' " .$ webroot ."/openemr/controller.php?document&view&patient_id= " .$ task ['PATIENT_ID ' ]."&doc_id= " .$ task ['DOC_ID ' ]."'
124+ $ send ['DOC_link ' ] = "<a href=' " .$ webroot ."/openemr/controller.php?document&view&patient_id= " .attr ( $ task ['PATIENT_ID ' ]) ."&doc_id= " .attr ( $ task ['DOC_ID ' ]) ."'
125125 target='_blank' title= " .xlt ('Report was faxed. Click to view. ' ).">
126126 <i class='fa fa-file-pdf-o fa-fw'></i>
127127 </a> " ;
@@ -339,7 +339,7 @@ function make_document($task)
339339 $ sql = "DELETE from documents where documents.url like ? " ;
340340 sqlQuery ($ sql , array ("% " .$ filename ));
341341 }
342-
342+
343343 $ config_mpdf = array (
344344 'tempDir ' => $ GLOBALS ['MPDF_WRITE_DIR ' ],
345345 'mode ' => $ GLOBALS ['pdf_language ' ],
@@ -465,7 +465,7 @@ function make_document($task)
465465 <td class='col1'>
466466 <?php echo xlt ('Comments ' ); ?> :
467467 </td>
468- <td class='col2'><?php echo xlt ('Report of visit ' ); ?> : <?php echo text ($ pt_name ); ?> on <?php echo $ visit_date ; ?>
468+ <td class='col2'><?php echo xlt ('Report of visit ' ); ?> : <?php echo text ($ pt_name ); ?> on <?php echo text ( $ visit_date) ; ?>
469469 </td>
470470 </tr>
471471 </table>
0 commit comments