Commit 1042bf4e authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1719480: Escaping the output of the webservice testclient



Before displaying it to screen

Change-Id: I0bfc727ca6e0feee649392fcd85a89b16f55201f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 648b191e)
parent fdc23f0b
......@@ -38,7 +38,7 @@ global $SESSION;
if ($result = $SESSION->get('ws_call_results')) {
$SESSION->set('ws_call_results', false);
$result = unserialize($result);
$elements['wsresults'] = array('type' => 'html', 'value' => '<h3>Results:</h3><pre>' . var_export($result, true) . '</pre><br/>');
$elements['wsresults'] = array('type' => 'html', 'value' => '<h3>Results:</h3><pre>' . hsc(var_export($result, true)) . '</pre><br/>');
}
// add protocol choice
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment