- Patch #1283244 by pillarsdotnet, TR: request_uri() documentation did not conform to standards.

8.0.x
Dries Buytaert 2011-09-21 05:31:43 -04:00
parent 778ea2ceeb
commit 75f9f5dc7c
1 changed files with 4 additions and 3 deletions

View File

@ -1572,11 +1572,12 @@ function drupal_validate_utf8($text) {
} }
/** /**
* Since $_SERVER['REQUEST_URI'] is only available on Apache, we * Returns the equivalent of Apache's $_SERVER['REQUEST_URI'] variable.
* generate an equivalent using other environment variables. *
* Because $_SERVER['REQUEST_URI'] is only available on Apache, we generate an
* equivalent using other environment variables.
*/ */
function request_uri() { function request_uri() {
if (isset($_SERVER['REQUEST_URI'])) { if (isset($_SERVER['REQUEST_URI'])) {
$uri = $_SERVER['REQUEST_URI']; $uri = $_SERVER['REQUEST_URI'];
} }