Skip to content

Commit 4a48cfe

Browse files
committed
bug symfony#57593 [SecurityBundle] Compare paths after realpath() has been applied to both (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [SecurityBundle] Compare paths after realpath() has been applied to both | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 6ca2390 Compare paths after realpath() has been applied to both
2 parents 088b13c + 6ca2390 commit 4a48cfe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ protected function initializeContainer()
539539
touch($oldContainerDir.'.legacy');
540540
}
541541

542+
$buildDir = $this->container->getParameter('kernel.build_dir');
542543
$cacheDir = $this->container->getParameter('kernel.cache_dir');
543544
$preload = $this instanceof WarmableInterface ? (array) $this->warmUp($cacheDir, $buildDir) : [];
544545

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ public function testWarmup()
563563
$kernel->boot();
564564

565565
$this->assertTrue($kernel->warmedUp);
566-
$this->assertSame($kernel->getBuildDir(), $kernel->warmedUpBuildDir);
566+
$this->assertSame(realpath($kernel->getBuildDir()), $kernel->warmedUpBuildDir);
567567
}
568568

569569
public function testServicesResetter()

0 commit comments

Comments
 (0)