git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cd116
)
fix bc for errors for empty requests
author
gggeek
<giunta.gaetano@gmail.com>
Mon, 29 Jul 2019 13:17:33 +0000
(13:17 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Mon, 29 Jul 2019 13:17:33 +0000
(13:17 +0000)
src/Server.php
patch
|
blob
|
history
diff --git
a/src/Server.php
b/src/Server.php
index
9738e86
..
37505f8
100644
(file)
--- a/
src/Server.php
+++ b/
src/Server.php
@@
-507,7
+507,7
@@
class Server
$xmlRpcParser->parse($data, $this->functions_parameters_type, XMLParser::ACCEPT_REQUEST);
if ($xmlRpcParser->_xh['isf'] > 2) {
// (BC) we return XML error as a faultCode
- preg_match('/
XML error [0-9]+
/', $xmlRpcParser->_xh['isf_reason'], $matches);
+ preg_match('/
^XML error ([0-9]+)
/', $xmlRpcParser->_xh['isf_reason'], $matches);
$r = new Response(0,
PhpXmlRpc::$xmlrpcerrxml + $matches[1],
$xmlRpcParser->_xh['isf_reason']);