[-] WS: do not escape shop name overzealously

This commit is contained in:
Corentin Delcourt
2013-07-10 10:21:33 +02:00
parent e8b8fa0527
commit 02faf9d18e
@@ -285,7 +285,7 @@ class WebserviceOutputBuilderCore
if (is_null($this->wsResource))
throw new WebserviceException ('You must set web service resource for get the resources list.', array(82, 500));
$output = '';
$more_attr = array('shop_name' => htmlentities(Configuration::get('PS_SHOP_NAME')));
$more_attr = array('shop_name' => htmlspecialchars(Configuration::get('PS_SHOP_NAME')));
$output .= $this->objectRender->renderNodeHeader('api', array(), $more_attr);
foreach ($this->wsResource as $resourceName => $resource)
{
@@ -807,4 +807,4 @@ class WebserviceOutputBuilderCore
{
$this->fieldsToDisplay = $fields;
}
}
}