Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-integrator
Commits
5ebb1c6f
Commit
5ebb1c6f
authored
5 months ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
phpcs
parent
817599a0
dev
main
1.2
2 merge requests
!52
:sparkles: Releasing Fusiondirectory Integrator 1.2
,
!50
Resolve "[Integrator] - Web Service call requires a definition of an HTTP_AGENT"
Pipeline
#30900
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FusionDirectory/Rest/WebServiceCall.php
+5
-5
src/FusionDirectory/Rest/WebServiceCall.php
with
5 additions
and
5 deletions
+5
-5
src/FusionDirectory/Rest/WebServiceCall.php
+
5
−
5
View file @
5ebb1c6f
...
@@ -34,8 +34,8 @@ class WebServiceCall
...
@@ -34,8 +34,8 @@ class WebServiceCall
$this
->
ch
=
!
empty
(
$URL
)
?
curl_init
(
$URL
)
:
curl_init
(
$this
->
URL
);
$this
->
ch
=
!
empty
(
$URL
)
?
curl_init
(
$URL
)
:
curl_init
(
$this
->
URL
);
// We require to set a proper http_agent
// We require to set a proper http_agent
$os
=
PHP_OS
;
$os
=
PHP_OS
;
$phpVersion
=
PHP_VERSION
;
$phpVersion
=
PHP_VERSION
;
$customUserAgent
=
"FusionDirectory/Integrator (
$os
; PHP
$phpVersion
; https://www.fusiondirectory.org) WebserviceLib"
;
$customUserAgent
=
"FusionDirectory/Integrator (
$os
; PHP
$phpVersion
; https://www.fusiondirectory.org) WebserviceLib"
;
// Manage a trick to perform refresh on user DN
// Manage a trick to perform refresh on user DN
...
@@ -48,7 +48,7 @@ class WebServiceCall
...
@@ -48,7 +48,7 @@ class WebServiceCall
if
(
!
empty
(
$method
))
{
if
(
!
empty
(
$method
))
{
$this
->
method
=
$method
;
$this
->
method
=
$method
;
// set the curl options based on the method required.
// set the curl options based on the method required.
switch
(
strtolower
(
$this
->
method
))
{
switch
(
strtolower
(
$this
->
method
))
{
case
'patch'
:
case
'patch'
:
...
@@ -113,8 +113,8 @@ class WebServiceCall
...
@@ -113,8 +113,8 @@ class WebServiceCall
$ch
=
curl_init
(
$this
->
URL
);
$ch
=
curl_init
(
$this
->
URL
);
// We require to set a proper http_agent
// We require to set a proper http_agent
$os
=
PHP_OS
;
$os
=
PHP_OS
;
$phpVersion
=
PHP_VERSION
;
$phpVersion
=
PHP_VERSION
;
$customUserAgent
=
"FusionDirectory/Integrator (
$os
; PHP
$phpVersion
; https://www.fusiondirectory.org) WebserviceLib"
;
$customUserAgent
=
"FusionDirectory/Integrator (
$os
; PHP
$phpVersion
; https://www.fusiondirectory.org) WebserviceLib"
;
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
TRUE
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets