Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document FULLTEXT search #5294

Closed
smarek opened this issue Oct 6, 2017 · 2 comments
Closed

Document FULLTEXT search #5294

smarek opened this issue Oct 6, 2017 · 2 comments
Milestone

Comments

@smarek
Copy link
Contributor

smarek commented Oct 6, 2017

Something in means of

$data = $this->Users->find('all', [
             'conditions' => [
                 "MATCH (username) AGAINST (\":against\" IN BOOLEAN MODE)"
             ]
         ])->bind(':against', h($name), "string");

With mentioning how to evade SQL injection vulnerabilities, and how to specify param type, for correct binding

@markstory
Copy link
Member

Sounds like a good idea.

@markstory markstory added this to the 3.x milestone Oct 6, 2017
@jimbo2150
Copy link

Looks like this is already added: https://book.cakephp.org/3/en/orm/query-builder.html#binding-values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants