[Scummvm-git-logs] scummvm-web master -> b85b1249abde163f9af48a41aa101340fc454754
criezy
criezy at scummvm.org
Mon Aug 3 22:00:56 UTC 2020
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:
b85b1249ab WEB: Fix parsing of some language
Commit: b85b1249abde163f9af48a41aa101340fc454754
https://github.com/scummvm/scummvm-web/commit/b85b1249abde163f9af48a41aa101340fc454754
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2020-08-03T22:59:12+01:00
Commit Message:
WEB: Fix parsing of some language
With the intorduction of the pt_BR language, the URL was no longer
parsed correctly as the language regexp was too restrictive.
Changed paths:
include/Controller.php
diff --git a/include/Controller.php b/include/Controller.php
index 8e6a8a78..5b1df7a7 100644
--- a/include/Controller.php
+++ b/include/Controller.php
@@ -66,7 +66,7 @@ class Controller
}
// Construct lang URL
- $pageurl = preg_replace('/\?lang=[a-z]*$/', '', $_SERVER['REQUEST_URI']);
+ $pageurl = preg_replace('/\?lang=[a-zA-Z_]*$/', '', $_SERVER['REQUEST_URI']);
/* Set up the common variables before displaying. */
$vars = array(
More information about the Scummvm-git-logs
mailing list