Skip to content

Commit 6c2436e

Browse files
committed
correct backticking of columns in queries from soap interface
1 parent 74bb850 commit 6c2436e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/remoting_lib.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ function getDataRecord($primary_id) {
243243
if($key == '#OFFSET#') $sql_offset = $app->functions->intval($val);
244244
elseif($key == '#LIMIT#') $sql_limit = $app->functions->intval($val);
245245
elseif(stristr($val, '%')) {
246-
$sql_where .= "? like ? AND ";
246+
$sql_where .= "?? like ? AND ";
247247
} else {
248-
$sql_where .= "? = ? AND ";
248+
$sql_where .= "?? = ? AND ";
249249
}
250250
$params[] = $key;
251251
$params[] = $val;

0 commit comments

Comments
 (0)