Author: Derick Rethans (derickr)
Date: 2025-08-12T11:31:41+01:00
Commit: Fixed filename access for filemtime/stat · php/web-php@a40673b · GitHub
Raw diff: https://github.com/php/web-php/commit/a40673b6f731965897706f61cbc022965828d217.diff
Fixed filename access for filemtime/stat
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index b339b625d9..3da277344c 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -26,7 +26,7 @@ foreach($css_files as $filename) {
$JS = ;
if (isset($config["js_files"])) {
foreach($config['js_files'] as $filename) {
- $path = dirname(__DIR__) . $filename;
+ $path = dirname(__DIR__) . '/' . $filename;
$JS[$filename] = @filemtime($path);
}
}