Skip to content

Commit

Permalink
OTCWebsite: fix double-escape bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Folkinshteyn committed Mar 27, 2014
1 parent 7437915 commit 6bd86e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OTCWebsite/viewratingdetail.php
Expand Up @@ -93,7 +93,7 @@ function like($s, $e) {
$sqlgpg = "SELECT * FROM users WHERE nick LIKE :nick ESCAPE '|'";
$stg = $gpgdb->prepare($sqlgpg, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
$stg->setFetchMode(PDO::FETCH_ASSOC);
$stg->bindValue(':nick', like($nickfilter, '|'));
$stg->bindValue(':nick', $nickfilter);
$stg->execute();
if($stg) {
$gpgentry = $stg->fetch(PDO::FETCH_BOTH);
Expand Down

0 comments on commit 6bd86e6

Please sign in to comment.