[web-php] master: Fixed filename access for filemtime/stat

From: Date: Tue, 12 Aug 2025 14:05:15 +0000
Subject: [web-php] master: Fixed filename access for filemtime/stat
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33101@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-08-12T14:29:32+01:00 Commit: https://github.com/php/web-php/commit/89c11399b7aec5df40e10c0ed01fe22284480544 Raw diff: https://github.com/php/web-php/commit/89c11399b7aec5df40e10c0ed01fe22284480544.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); } }

« previous php.webmaster (#33101) next »