From 7b12a004be967689ef985ab6c561fc21a28f6380 Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Thu, 7 Nov 2013 16:29:47 +0100 Subject: [PATCH 1/2] [Security] fixed a dot in a regex --- book/security.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/security.rst b/book/security.rst index 1495c64084e..1bfa21be132 100644 --- a/book/security.rst +++ b/book/security.rst @@ -785,7 +785,7 @@ Take the following ``access_control`` entries as an example: # ... access_control: - { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1 } - - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony.com } + - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony\.com } - { path: ^/admin, roles: ROLE_USER_METHOD, methods: [POST, PUT] } - { path: ^/admin, roles: ROLE_USER } @@ -793,7 +793,7 @@ Take the following ``access_control`` entries as an example: - + @@ -809,7 +809,7 @@ Take the following ``access_control`` entries as an example: array( 'path' => '^/admin', 'role' => 'ROLE_USER_HOST', - 'host' => 'symfony.com', + 'host' => 'symfony\\.com', ), array( 'path' => '^/admin', From 0986092e01ba4e4f743927bbe9dcabd5a128d418 Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Sat, 9 Nov 2013 12:14:36 +0100 Subject: [PATCH 2/2] updated rexeg --- book/security.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/security.rst b/book/security.rst index 1bfa21be132..2be790c63f2 100644 --- a/book/security.rst +++ b/book/security.rst @@ -785,7 +785,7 @@ Take the following ``access_control`` entries as an example: # ... access_control: - { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1 } - - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony\.com } + - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony\.com$ } - { path: ^/admin, roles: ROLE_USER_METHOD, methods: [POST, PUT] } - { path: ^/admin, roles: ROLE_USER } @@ -793,7 +793,7 @@ Take the following ``access_control`` entries as an example: - + @@ -809,7 +809,7 @@ Take the following ``access_control`` entries as an example: array( 'path' => '^/admin', 'role' => 'ROLE_USER_HOST', - 'host' => 'symfony\\.com', + 'host' => 'symfony\.com$', ), array( 'path' => '^/admin',