[Scummvm-git-logs] scummvm-web master -> 09edbcd8274c85598445adb31f945b27bd31e648

Mataniko mataniko at gmail.com
Sun Nov 17 13:19:26 CET 2019


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

Summary:
09edbcd827 WEB: case insensitive router match


Commit: 09edbcd8274c85598445adb31f945b27bd31e648
    https://github.com/scummvm/scummvm-web/commit/09edbcd8274c85598445adb31f945b27bd31e648
Author: Matan Bareket (mataniko at gmail.com)
Date: 2019-11-17T07:19:09-05:00

Commit Message:
WEB: case insensitive router match

Changed paths:
    public_html/index.php


diff --git a/public_html/index.php b/public_html/index.php
index b10fd11..b4dbff3 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -108,7 +108,7 @@ foreach ($pages as $key => $value) {
     $router->map('GET', $key . '/', $value);
 }
 
-$match = $router->match();
+$match = $router->match(strtolower($_SERVER['REQUEST_URI']));
 if ($match) {
     $page = new $match['target']();
     return $page->index($match['params']);





More information about the Scummvm-git-logs mailing list