Skip to content

Commit 9ad5d97

Browse files
committed
get rid of FILTER_SANITIZE_STRING everywhere
1 parent 90ab25d commit 9ad5d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MysqliDb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public function rawQueryValue ($query, $bindParams = null) {
395395
*/
396396
public function query($query, $numRows = null)
397397
{
398-
$this->_query = filter_var($query, FILTER_SANITIZE_STRING);
398+
$this->_query = $query;
399399
$stmt = $this->_buildQuery($numRows);
400400
$stmt->execute();
401401
$this->_stmtError = $stmt->error;
@@ -693,7 +693,7 @@ public function join($joinTable, $joinCondition, $joinType = '')
693693
die ('Wrong JOIN type: '.$joinType);
694694

695695
if (!is_object ($joinTable))
696-
$joinTable = self::$prefix . filter_var($joinTable, FILTER_SANITIZE_STRING);
696+
$joinTable = self::$prefix . $joinTable;
697697

698698
$this->_join[] = Array ($joinType, $joinTable, $joinCondition);
699699

0 commit comments

Comments
 (0)