mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Add redirect for php.net/GH-123
Redirect `php.net/GH-123` to the corresponding issue or pull request on php/php-src. This is part of https://wiki.php.net/rfc/github_issues, but is also useful independently for pull request references.
This commit is contained in:
committed by
Nikita Popov
parent
b9624ef407
commit
1e832e0a8d
@@ -167,6 +167,11 @@ if (is_numeric($URI)) {
|
||||
mirror_redirect("http://bugs.php.net/bug.php?id=$URI");
|
||||
}
|
||||
|
||||
// php.net/GH-123 -> php-src GH issue #123
|
||||
if (preg_match('/^GH-(\d+)$/', $URI, $matches)) {
|
||||
mirror_redirect("https://github.com/php/php-src/issues/" . $matches[1]);
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Redirect if the entered URI was a PHP page name (except some pages,
|
||||
// which we display in the mirror's language or the explicitly specified
|
||||
|
||||
Reference in New Issue
Block a user