Skip to content

Commit

Permalink
fix(CustomerPortal) get correct where condition when null is given
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed Aug 16, 2017
1 parent dff7469 commit 3a5bbdf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions soap/customerportal.php
Expand Up @@ -654,13 +654,16 @@ function save_faq_comment($input_array)


function get_tickets_list($input_array) {

global $adb,$log, $current_user;
//To avoid SQL injection we are type casting as well as bound the id variable.
$id = (int) vtlib_purify($input_array['id']);

$only_mine = $input_array['onlymine'];
$where = $adb->sql_escape_string($input_array['where']);
if (empty($input_array['where'])) {
$where = '';
} else {
$where = $adb->sql_escape_string($input_array['where']);
}
$match = $input_array['match'];
$sessionid = $input_array['sessionid'];

Expand Down

0 comments on commit 3a5bbdf

Please sign in to comment.