Merge pull request #552 from codl/development

[-] WS: do not escape shop name overzealously
This commit is contained in:
Rémi Gaillard
2013-07-11 00:44:52 -07:00

View File

@@ -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;
}
}
}