[Scummvm-git-logs] scummvm-web master -> 82e06a50a69e50ddfc538f4bd8c999ebf595557e

lephilousophe noreply at scummvm.org
Tue Aug 12 09:54:47 UTC 2025


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm-web' repo located at https://api.github.com/repos/scummvm/scummvm-web .

Summary:
144ef8dbbb WEB: Fix development server
82e06a50a6 WEB: Fix relative path


Commit: 144ef8dbbb8d473ac1f54ccb50d3c46e5455e240
    https://github.com/scummvm/scummvm-web/commit/144ef8dbbb8d473ac1f54ccb50d3c46e5455e240
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-08-12T11:53:46+02:00

Commit Message:
WEB: Fix development server

This should never have been committed like this before.

Changed paths:
    public_html/index.php


diff --git a/public_html/index.php b/public_html/index.php
index 3c7e5c83..a8d8ec29 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -11,7 +11,7 @@ namespace ScummVM;
  */
 if (isset($_SERVER['SERVER_SOFTWARE']) &&
     \preg_match("/PHP [\d\.]+ Development Server/",$_SERVER['SERVER_SOFTWARE'])) {
-    if (\file_exists(__DIR__ . '/' . strtok($_SERVER["REQUEST_URI"], '?'))) {
+    if (\is_file(__DIR__ . '/' . strtok($_SERVER["REQUEST_URI"], '?'))) {
         return false;
     }
     define('DEV_SERVER', true);


Commit: 82e06a50a69e50ddfc538f4bd8c999ebf595557e
    https://github.com/scummvm/scummvm-web/commit/82e06a50a69e50ddfc538f4bd8c999ebf595557e
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-08-12T11:53:51+02:00

Commit Message:
WEB: Fix relative path

Current working directory must not be relied on.

Changed paths:
    include/Pages/StaticPage.php


diff --git a/include/Pages/StaticPage.php b/include/Pages/StaticPage.php
index 4f84c329..0eba0673 100644
--- a/include/Pages/StaticPage.php
+++ b/include/Pages/StaticPage.php
@@ -12,7 +12,7 @@ class StaticPage extends Controller
     {
         parent::__construct();
 
-        $this->filename = "html/$key.html";
+        $this->filename = DIR_STATIC . "/html/$key.html";
         if (!is_file($this->filename) || !is_readable($this->filename)) {
             throw new \ErrorException(\sprintf(self::FILE_NOT_FOUND, $this->filename));
         }




More information about the Scummvm-git-logs mailing list