Merge pull request #552 from codl/development
[-] WS: do not escape shop name overzealously
This commit is contained in:
@@ -285,7 +285,7 @@ class WebserviceOutputBuilderCore
|
|||||||
if (is_null($this->wsResource))
|
if (is_null($this->wsResource))
|
||||||
throw new WebserviceException ('You must set web service resource for get the resources list.', array(82, 500));
|
throw new WebserviceException ('You must set web service resource for get the resources list.', array(82, 500));
|
||||||
$output = '';
|
$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);
|
$output .= $this->objectRender->renderNodeHeader('api', array(), $more_attr);
|
||||||
foreach ($this->wsResource as $resourceName => $resource)
|
foreach ($this->wsResource as $resourceName => $resource)
|
||||||
{
|
{
|
||||||
@@ -807,4 +807,4 @@ class WebserviceOutputBuilderCore
|
|||||||
{
|
{
|
||||||
$this->fieldsToDisplay = $fields;
|
$this->fieldsToDisplay = $fields;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user