aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-17 02:41:57 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-17 02:41:57 +0000
commit08b63815640b2fc8059c243a4f9feaf865801a25 (patch)
tree9d85b271d0857dd898d61883258d11986071c367 /admin
parentf27bd8558af02ec510137a196b874c87925e14bb (diff)
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
Diffstat (limited to 'admin')
-rw-r--r--admin/site_reader_remote.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/site_reader_remote.php b/admin/site_reader_remote.php
index c76a37d04..bc4cefff0 100644
--- a/admin/site_reader_remote.php
+++ b/admin/site_reader_remote.php
@@ -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;