Skip to content

Commit 37253f5

Browse files
committed
Merge remote-tracking branch 'upstream/2.4'
2 parents 8bca8c2 + 3d88312 commit 37253f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ variables that are passed into the expression:
981981
Behind the scenes, expressions are compiled down to raw PHP. Our example
982982
would generate the following PHP in the cache directory::
983983

984-
if (rtrim($pathinfo, '/contact') === '' && (
984+
if ($pathinfo === '/contact' && (
985985
in_array($context->getMethod(), array(0 => "GET", 1 => "HEAD"))
986986
&& preg_match("/firefox/i", $request->headers->get("User-Agent"))
987987
)) {

0 commit comments

Comments
 (0)