File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ a little to make templates even more readable::
2323 $path = $request->getPathInfo();
2424 if (isset($map[$path])) {
2525 ob_start();
26- extract($request->query->all());
26+ extract($request->query->all(), EXTR_SKIP );
2727 include sprintf(__DIR__.'/../src/pages/%s.php', $map[$path]);
2828 $response = new Response(ob_get_clean());
2929 } else {
@@ -169,7 +169,7 @@ With this knowledge in mind, let's write the new version of our framework::
169169 $matcher = new Routing\Matcher\UrlMatcher($routes, $context);
170170
171171 try {
172- extract($matcher->match($request->getPathInfo()));
172+ extract($matcher->match($request->getPathInfo()), EXTR_SKIP );
173173 ob_start();
174174 include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
175175
You can’t perform that action at this time.
0 commit comments