Fixed missing entities encoding in setMetadataValue.
This commit is contained in:
parent
44f5963d9d
commit
8f3c89c22e
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.26 $
|
Version : $Revision: 1.27 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -215,6 +215,7 @@ class MetaData{
|
||||||
*/
|
*/
|
||||||
function setMetadataEl($mid, $value=NULL)
|
function setMetadataEl($mid, $value=NULL)
|
||||||
{
|
{
|
||||||
|
if(!is_null($value)){ $value = htmlentities($value); }
|
||||||
$info = $this->dbc->getRow("
|
$info = $this->dbc->getRow("
|
||||||
SELECT parmd.predns as parns, parmd.predicate as parname,
|
SELECT parmd.predns as parns, parmd.predicate as parname,
|
||||||
md.predxml, md.predns as chns, md.predicate as chname
|
md.predxml, md.predns as chns, md.predicate as chname
|
||||||
|
@ -398,6 +399,7 @@ class MetaData{
|
||||||
{
|
{
|
||||||
$fn = $this->fname;
|
$fn = $this->fname;
|
||||||
$xml = $this->genXMLDoc();
|
$xml = $this->genXMLDoc();
|
||||||
|
if(PEAR::isError($xml)) return $xml;
|
||||||
if (!$fh = fopen($fn, 'w')) {
|
if (!$fh = fopen($fn, 'w')) {
|
||||||
return PEAR::raiseError(
|
return PEAR::raiseError(
|
||||||
"MetaData::regenerateXmlFile: cannot open for write ($fn)"
|
"MetaData::regenerateXmlFile: cannot open for write ($fn)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue