Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
OpnSense
Commits
5f65d541
Commit
5f65d541
authored
Oct 12, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmlrpc: log target down; closes #429
parent
f5cedec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
XMLRPC_Client.inc
src/etc/inc/XMLRPC_Client.inc
+7
-1
No files found.
src/etc/inc/XMLRPC_Client.inc
View file @
5f65d541
...
@@ -140,11 +140,16 @@ class SimpleXMLRPC_Client
...
@@ -140,11 +140,16 @@ class SimpleXMLRPC_Client
)
)
));
));
$this
->
response_received
=
file_get_contents
(
$this
->
url
,
false
,
$context
);
$this
->
response_received
=
@
file_get_contents
(
$this
->
url
,
false
,
$context
);
if
(
$this
->
response_received
===
false
)
{
$this
->
error
=
'fetch error. remote host down?'
;
return
false
;
}
if
(
$this
->
debug
)
{
if
(
$this
->
debug
)
{
echo
">>> received :
\n
"
.
$this
->
response_received
.
"
\n
"
;
echo
">>> received :
\n
"
.
$this
->
response_received
.
"
\n
"
;
}
}
$this
->
message
=
new
IXR_Message
(
$this
->
response_received
);
$this
->
message
=
new
IXR_Message
(
$this
->
response_received
);
if
(
!
$this
->
message
->
parse
())
{
if
(
!
$this
->
message
->
parse
())
{
$this
->
error
=
'parse error. not well formed'
;
$this
->
error
=
'parse error. not well formed'
;
...
@@ -153,6 +158,7 @@ class SimpleXMLRPC_Client
...
@@ -153,6 +158,7 @@ class SimpleXMLRPC_Client
$this
->
error
=
$this
->
message
->
faultString
;
$this
->
error
=
$this
->
message
->
faultString
;
return
false
;
return
false
;
}
}
return
true
;
return
true
;
}
}
...
...
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