Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
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
Björn Fischer
z-push
Commits
7da39ad1
Commit
7da39ad1
authored
Feb 01, 2018
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1329 Fixed typos.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
633f9656
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
request.php
src/lib/request/request.php
+5
-5
No files found.
src/lib/request/request.php
View file @
7da39ad1
...
@@ -70,7 +70,7 @@ class Request {
...
@@ -70,7 +70,7 @@ class Request {
static
private
$authUser
;
static
private
$authUser
;
static
private
$authDomain
;
static
private
$authDomain
;
static
private
$authPassword
;
static
private
$authPassword
;
static
private
$impersontedUser
;
static
private
$imperson
a
tedUser
;
static
private
$asProtocolVersion
;
static
private
$asProtocolVersion
;
static
private
$policykey
;
static
private
$policykey
;
static
private
$useragent
;
static
private
$useragent
;
...
@@ -190,7 +190,7 @@ class Request {
...
@@ -190,7 +190,7 @@ class Request {
self
::
$authUser
=
self
::
$authUserString
;
// auth will fail when impersonating & KOE_CAPABILITY_IMPERSONATE is disabled
self
::
$authUser
=
self
::
$authUserString
;
// auth will fail when impersonating & KOE_CAPABILITY_IMPERSONATE is disabled
if
(
defined
(
'KOE_CAPABILITY_IMPERSONATE'
)
&&
KOE_CAPABILITY_IMPERSONATE
&&
stripos
(
self
::
$authUserString
,
self
::
IMPERSONATE_DELIM
)
!==
false
)
{
if
(
defined
(
'KOE_CAPABILITY_IMPERSONATE'
)
&&
KOE_CAPABILITY_IMPERSONATE
&&
stripos
(
self
::
$authUserString
,
self
::
IMPERSONATE_DELIM
)
!==
false
)
{
list
(
self
::
$authUser
,
self
::
$impersontedUser
)
=
explode
(
self
::
IMPERSONATE_DELIM
,
strtolower
(
self
::
$authUserString
));
list
(
self
::
$authUser
,
self
::
$imperson
a
tedUser
)
=
explode
(
self
::
IMPERSONATE_DELIM
,
strtolower
(
self
::
$authUserString
));
}
}
if
(
defined
(
'USE_FULLEMAIL_FOR_LOGIN'
)
&&
!
USE_FULLEMAIL_FOR_LOGIN
)
{
if
(
defined
(
'USE_FULLEMAIL_FOR_LOGIN'
)
&&
!
USE_FULLEMAIL_FOR_LOGIN
)
{
...
@@ -430,14 +430,14 @@ class Request {
...
@@ -430,14 +430,14 @@ class Request {
}
}
/**
/**
* Returns the impersonated user. If not availabe, returns false.
* Returns the impersonated user. If not availab
l
e, returns false.
*
*
* @access public
* @access public
* @return string/boolean false if not available
* @return string/boolean false if not available
*/
*/
static
public
function
GetImpersonatedUser
()
{
static
public
function
GetImpersonatedUser
()
{
if
(
isset
(
self
::
$impersontedUser
))
{
if
(
isset
(
self
::
$imperson
a
tedUser
))
{
return
self
::
$impersontedUser
;
return
self
::
$imperson
a
tedUser
;
}
}
return
false
;
return
false
;
}
}
...
...
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