Skip to content

Commit

Permalink
[book][security] Fixing two errors per @stof
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed May 16, 2011
1 parent c4b0e78 commit 65c5e15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Access Controls (Authorization)

If a user requests ``/admin/foo``, however, the process behaves differently.
This is because of the ``access_control`` configuration section that says
that any URL matching the regular expression pattern ``^admin`` (i.e. ``/admin``
that any URL matching the regular expression pattern ``^/admin`` (i.e. ``/admin``
or anything matching ``/admin/*``) requires the ``ROLE_ADMIN`` role. Roles
are the basis for most authorization: a user can access ``/admin/foo`` only
if it has the ``ROLE_ADMIN`` role.
Expand Down Expand Up @@ -585,15 +585,15 @@ see :doc:`/cookbook/security/form_login`.
firewalls:
login_firewall:
pattern: ^/login
pattern: ^/login$
anonymous: ~
secured_area:
pattern: ^/
login_form: ~
.. code-block:: xml
<firewall name="login_firewall" pattern="^/login">
<firewall name="login_firewall" pattern="^/login$">
<anonymous />
</firewall>
<firewall name="secured_area" pattern="^/">
Expand All @@ -604,7 +604,7 @@ see :doc:`/cookbook/security/form_login`.
'firewalls' => array(
'login_firewall' => array(
'pattern' => '^/login',
'pattern' => '^/login$',
'anonymous' => array(),
),
'secured_area' => array(
Expand Down

0 comments on commit 65c5e15

Please sign in to comment.