Skip to content

Commit

Permalink
Stop manually escaping stuff in teh query. Fixes #306
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Nov 15, 2016
1 parent a2f4459 commit 506db89
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions system/Database/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,6 @@ protected function matchNamedBinds(string $sql, array $binds)
$escapedValue = preg_quote(trim($escapedValue, $this->db->escapeChar));
}

// $ causes issues in preg_replace, but are needed
// for password hashes
$escapedValue = str_replace('$', '\$', $escapedValue);


$sql = preg_replace('/:'.$placeholder.'(?!\w)/', $escapedValue, $sql);
}

Expand Down

0 comments on commit 506db89

Please sign in to comment.