Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
f0daf3e1
Unverified
Commit
f0daf3e1
authored
6 years ago
by
Tim van Dijen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix wording; it did not describe what function does
parent
21e5b057
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Utils/HTTP.php
+4
-4
4 additions, 4 deletions
lib/SimpleSAML/Utils/HTTP.php
with
4 additions
and
4 deletions
lib/SimpleSAML/Utils/HTTP.php
+
4
−
4
View file @
f0daf3e1
...
...
@@ -638,16 +638,16 @@ class HTTP
/**
* Retrieve the first element of the URL path.
*
* @param boolean $
trail
ing
s
lash Whether to add a
trail
ing slash to the element or not. Defaults to true.
* @param boolean $
lead
ing
S
lash Whether to add a
lead
ing slash to the element or not. Defaults to true.
*
* @return string The first element of the URL path, with an optional,
trail
ing slash.
* @return string The first element of the URL path, with an optional,
lead
ing slash.
*
* @author Andreas Solberg, UNINETT AS <andreas.solberg@uninett.no>
*/
public
static
function
getFirstPathElement
(
$
trail
ing
s
lash
=
true
)
public
static
function
getFirstPathElement
(
$
lead
ing
S
lash
=
true
)
{
if
(
preg_match
(
'|^/(.*?)/|'
,
$_SERVER
[
'SCRIPT_NAME'
],
$matches
))
{
return
(
$
trail
ing
s
lash
?
'/'
:
''
)
.
$matches
[
1
];
return
(
$
lead
ing
S
lash
?
'/'
:
''
)
.
$matches
[
1
];
}
return
''
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment