diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-07-31 10:30:54 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-08-20 17:26:48 +0200 |
commit | 335066864a37159713cda3bcd20ca222b409b002 (patch) | |
tree | 437baab4ae1cdd02fa845c058b526d507bb6b416 | |
parent | a3cd65cddc24674970008fd4a16192d8dde2d701 (diff) |
#915 do not print misleading API error on web console
Irina reports a raw array showing in the web console when calling the
new ogAdmServer API.
var_export() prints the error message on the web instead of syslog.
Changing var_export() for print_r() solves this bug.
-rw-r--r-- | admin/WebConsole/includes/restfunctions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php index 159eab48..7f710adf 100644 --- a/admin/WebConsole/includes/restfunctions.php +++ b/admin/WebConsole/includes/restfunctions.php @@ -55,7 +55,7 @@ function common_request($command, $type, $data = null) { $info = curl_getinfo($curl); if ($curl_response === false || $info['http_code'] != 200) { - syslog(LOG_ERR, 'error occured during curl exec. Additioanl info: ' . var_export($info)); + syslog(LOG_ERR, 'error occured during curl exec. Additioanl info: ' . print_r($info, TRUE)); return 0; } |