Skip to content

Commit 9ad7832

Browse files
stlrnznicolas-grekas
authored andcommitted
[ErrorHandler] Fix error caused by include + open_basedir
1 parent faf7269 commit 9ad7832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private function include(string $name, array $context = []): string
352352
extract($context, \EXTR_SKIP);
353353
ob_start();
354354

355-
include file_exists($name) ? $name : __DIR__.'/../Resources/'.$name;
355+
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
356356

357357
return trim(ob_get_clean());
358358
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy