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

Is code SQL injection protected? #2

Open
123pierre opened this issue Feb 29, 2016 · 0 comments
Open

Is code SQL injection protected? #2

123pierre opened this issue Feb 29, 2016 · 0 comments

Comments

@123pierre
Copy link

Hello,

Im beginner under drupal and Github.

Shouldn't we include a SQL injection protection such as:

static function delete(INT $id = NULL) {
    if (!is_int($id)) return;
    db_delete('sls_client')->condition('id', $id)->execute();
  }

Maybe already protected from db_delete, I dont't know?

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

No branches or pull requests

1 participant