Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
415cb0fe
Commit
415cb0fe
authored
Oct 25, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
continuing to refactor the uri class.
parent
e454227d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
uri.php
laravel/uri.php
+3
-8
No files found.
laravel/uri.php
View file @
415cb0fe
...
...
@@ -32,7 +32,8 @@ class URI {
*
* If the request is to the root of the application, a single forward slash
* will be returned. Otherwise, the URI will be returned with all leading
* and trailing slashes removed.
* and trailing slashes removed. The application URL and index file will
* also be removed since they are not used when routing the request.
*
* @return string
*/
...
...
@@ -40,18 +41,12 @@ class URI {
{
if
(
!
is_null
(
$this
->
uri
))
return
$this
->
uri
;
$uri
=
parse_url
(
$this
->
server
[
'REQUEST_URI'
],
PHP_URL_PATH
);
return
$this
->
uri
=
$this
->
format
(
$this
->
clean
(
$uri
));
return
$this
->
uri
=
$this
->
format
(
$this
->
clean
(
parse_url
(
$this
->
server
[
'REQUEST_URI'
],
PHP_URL_PATH
)));
}
/**
* Remove extraneous information from the given request URI.
*
* The application URL will be removed, as well as the application index file
* and the request format. None of these things are used when routing the
* request to a closure or controller, so they can be safely removed.
*
* @param string $uri
* @return string
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment