[web-php] master: Fix redirection rules and add some new rules (#747)
| From: | Máté Kocsis via GitHub | Date: | Mon, 09 Jan 2023 14:33:43 +0000 |
| Subject: | [web-php] master: Fix redirection rules and add some new rules (#747) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30740@lists.php.net to get a copy of this message | ||
Author: Máté Kocsis (kocsismate)
Committer: GitHub (web-flow)
Pusher: kocsismate
Date: 2023-01-09T15:21:23+01:00
Commit: https://github.com/php/web-php/commit/8b59e9ce4274dbcebbbcdc16a9d55c6555a3e2aa
Raw diff: https://github.com/php/web-php/commit/8b59e9ce4274dbcebbbcdc16a9d55c6555a3e2aa.diff
Fix redirection rules and add some new rules (#747)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Changed paths:
M error.php
Diff:
diff --git a/error.php b/error.php
index 6cde4e7ef..e6a97d7d8 100644
--- a/error.php
+++ b/error.php
@@ -291,13 +291,15 @@
'oci-collection.max' => 'ocicollection.max',
'oci-collection.size' => 'ocicollection.size',
'oci-collection.trim' => 'ocicollection.trim',
- 'class.allow-dynamic-properties.php' =>
'class.allowdynamicproperties.php',
- 'class.return-type-will-change.php' => 'class.returntypewillchange.php',
- 'class.sensitive-parameter.php' => 'class.sensitiveparameter.php',
+ 'splstack.setiteratormode' => 'spldoublylinkedlist.setiteratormode',
+ 'splqueue.setiteratormode' => 'spldoublylinkedlist.setiteratormode',
+ 'class.allow-dynamic-properties' => 'class.allowdynamicproperties',
+ 'class.return-type-will-change' => 'class.returntypewillchange',
+ 'class.sensitive-parameter' => 'class.sensitiveparameter',
'function.curl-file-create' => 'curlfile.construct',
];
-if (preg_match("!^manual/([^/]+)/([^/]+)$!", $URI, $match) &&
isset($manual_redirections[$match[2]])) {
+if (preg_match("!^manual/([^/]+)/([^/]+?)(?:\.php)?$!", $URI, $match) &&
isset($manual_redirections[$match[2]])) {
status_header(301);
mirror_redirect("/manual/$match[1]/" . $manual_redirections[$match[2]]);
}