File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -785,15 +785,15 @@ Take the following ``access_control`` entries as an example:
785
785
# ...
786
786
access_control :
787
787
- { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1 }
788
- - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony.com }
788
+ - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony\ .com$ }
789
789
- { path: ^/admin, roles: ROLE_USER_METHOD, methods: [POST, PUT] }
790
790
- { path: ^/admin, roles: ROLE_USER }
791
791
792
792
.. code-block :: xml
793
793
794
794
<access-control >
795
795
<rule path =" ^/admin" role =" ROLE_USER_IP" ip =" 127.0.0.1" />
796
- <rule path =" ^/admin" role =" ROLE_USER_HOST" host =" symfony.com" />
796
+ <rule path =" ^/admin" role =" ROLE_USER_HOST" host =" symfony\ .com$ " />
797
797
<rule path =" ^/admin" role =" ROLE_USER_METHOD" method =" POST, PUT" />
798
798
<rule path =" ^/admin" role =" ROLE_USER" />
799
799
</access-control >
@@ -809,7 +809,7 @@ Take the following ``access_control`` entries as an example:
809
809
array(
810
810
'path' => '^/admin',
811
811
'role' => 'ROLE_USER_HOST',
812
- 'host' => 'symfony.com',
812
+ 'host' => 'symfony\ .com$ ',
813
813
),
814
814
array(
815
815
'path' => '^/admin',
You can’t perform that action at this time.
0 commit comments