mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-37355 Fix the REST server that didn't send back the cleaned values
This commit is contained in:
parent
9da506c2a3
commit
6a30d03e5f
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ class webservice_rest_server extends webservice_base_server {
|
||||||
} else {
|
} else {
|
||||||
$response = '<?xml version="1.0" encoding="UTF-8" ?>'."\n";
|
$response = '<?xml version="1.0" encoding="UTF-8" ?>'."\n";
|
||||||
$response .= '<RESPONSE>'."\n";
|
$response .= '<RESPONSE>'."\n";
|
||||||
$response .= self::xmlize_result($this->returns, $this->function->returns_desc);
|
$response .= self::xmlize_result($validatedvalues, $this->function->returns_desc);
|
||||||
$response .= '</RESPONSE>'."\n";
|
$response .= '</RESPONSE>'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -248,4 +248,4 @@ class webservice_rest_test_client implements webservice_test_client_interface {
|
||||||
public function simpletest($serverurl, $function, $params) {
|
public function simpletest($serverurl, $function, $params) {
|
||||||
return download_file_content($serverurl.'&wsfunction='.$function, null, $params);
|
return download_file_content($serverurl.'&wsfunction='.$function, null, $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue