mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
The manual path does not need to end in /manual/ :)
This commit is contained in:
@@ -61,7 +61,7 @@ if (!empty($dir) && !preg_match("!^(\\.|/)$!", $dir)) {
|
||||
"/error" => 1,
|
||||
"/license" => 1
|
||||
);
|
||||
if (preg_match("!^/manual/$!", $dir) || isset($legal_dirs[$dir])) {
|
||||
if (preg_match("!^/manual/!", $dir) || isset($legal_dirs[$dir])) {
|
||||
$page_name = $_SERVER['DOCUMENT_ROOT'] . $_GET['url'];
|
||||
} else { $page_name = FALSE; }
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user