Skip to content

Commit 56ef121

Browse files
committed
docs: replace SCRIPT_NAME with baseURL
It is easier to understand.
1 parent c9552e4 commit 56ef121

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

system/HTTP/IncomingRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class IncomingRequest extends Request
6262
*
6363
* Note: This WILL NOT match the actual URL in the browser since for
6464
* everything this cares about (and the router, etc) is the portion
65-
* AFTER the script name. So, if hosted in a sub-folder this will
66-
* appear different than actual URL. If you need that use getPath().
65+
* AFTER the baseURL. So, if hosted in a sub-folder this will
66+
* appear different than actual URI path. If you need that use getPath().
6767
*
6868
* @deprecated Will be protected. Use getUri() instead.
6969
*
@@ -72,7 +72,7 @@ class IncomingRequest extends Request
7272
public $uri;
7373

7474
/**
75-
* The detected path (relative to SCRIPT_NAME).
75+
* The detected URI path (relative to the baseURL).
7676
*
7777
* Note: current_url() uses this to build its URI,
7878
* so this becomes the source for the "current URL"
@@ -511,7 +511,7 @@ private function determineHost(App $config, string $baseURL): string
511511
}
512512

513513
/**
514-
* Returns the path relative to SCRIPT_NAME,
514+
* Returns the URI path relative to baseURL,
515515
* running detection as necessary.
516516
*/
517517
public function getPath(): string

system/HTTP/URI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class URI
9090
*
9191
* Note: The constructor of the IncomingRequest class changes the path of
9292
* the URI object held by the IncomingRequest class to a path relative
93-
* to the SCRIPT_NAME. If the baseURL contains subfolders, this value
93+
* to the baseURL. If the baseURL contains subfolders, this value
9494
* will be different from the current URI path.
9595
*
9696
* @var string

0 commit comments

Comments
 (0)