File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
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::
23
23
$path = $request->getPathInfo();
24
24
if (isset($map[$path])) {
25
25
ob_start();
26
- extract($request->query->all());
26
+ extract($request->query->all(), EXTR_SKIP );
27
27
include sprintf(__DIR__.'/../src/pages/%s.php', $map[$path]);
28
28
$response = new Response(ob_get_clean());
29
29
} else {
@@ -169,7 +169,7 @@ With this knowledge in mind, let's write the new version of our framework::
169
169
$matcher = new Routing\Matcher\UrlMatcher($routes, $context);
170
170
171
171
try {
172
- extract($matcher->match($request->getPathInfo()));
172
+ extract($matcher->match($request->getPathInfo()), EXTR_SKIP );
173
173
ob_start();
174
174
include sprintf(__DIR__.'/../src/pages/%s.php', $_route);
175
175
You can’t perform that action at this time.
0 commit comments