mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-07 02:11:26 +02:00
fix: remote site decodes html entities from xml and addslashes
fix: picture displays "image rank/total" images even for non numeric categories fix: category comment not transformed with nl2br if allow_html_descriptions and comment already looks like html git-svn-id: http://piwigo.org/svn/trunk@1046 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -152,7 +152,8 @@ function get_element_attributes($file, $attributes)
|
||||
{
|
||||
if (getAttribute($xml_element, $att) != '')
|
||||
{
|
||||
$data[$att] = getAttribute($xml_element, $att);
|
||||
$val = html_entity_decode( getAttribute($xml_element, $att) );
|
||||
$data[$att] = addslashes($val);
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user