Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/extending-the-model-blog-comments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ instead of setting the values directly in the query like so

.. code-block:: php

->where('c.blog = ' . blogId)
->where('c.blog = ' . $blogId)

In this example the value of ``$blogId`` will not be sanitized and could leave the
query open to an `SQL injection <http://en.wikipedia.org/wiki/SQL_injection>`_ attack.
Expand Down