#1903 fixed handling html special characters
This commit is contained in:
parent
07d057b69b
commit
20d6342370
1 changed files with 1 additions and 13 deletions
|
@ -224,12 +224,8 @@ class MetaData {
|
||||||
ORDER BY id
|
ORDER BY id
|
||||||
";
|
";
|
||||||
$all = $this->dbc->getAll($sql);
|
$all = $this->dbc->getAll($sql);
|
||||||
$transTbl = get_html_translation_table();
|
|
||||||
$transTbl = array_flip($transTbl);
|
|
||||||
foreach ($all as $i => $v) {
|
foreach ($all as $i => $v) {
|
||||||
if (!is_null($all[$i]['value'])) {
|
if (is_null($all[$i]['value'])) {
|
||||||
$all[$i]['value'] = strtr($all[$i]['value'], $transTbl);
|
|
||||||
} else {
|
|
||||||
$all[$i]['value'] = '';
|
$all[$i]['value'] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -251,10 +247,6 @@ class MetaData {
|
||||||
*/
|
*/
|
||||||
function setMetadataEl($mid, $value=NULL)
|
function setMetadataEl($mid, $value=NULL)
|
||||||
{
|
{
|
||||||
if (!is_null($value)) {
|
|
||||||
$transTbl = get_html_translation_table();
|
|
||||||
$value = strtr($value, $transTbl);
|
|
||||||
}
|
|
||||||
$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
|
||||||
|
@ -338,10 +330,6 @@ class MetaData {
|
||||||
$catNs = $a['namespace'];
|
$catNs = $a['namespace'];
|
||||||
$cat = $a['localPart'];
|
$cat = $a['localPart'];
|
||||||
$objns = (is_null($value) ? '_blank' : '_L' );
|
$objns = (is_null($value) ? '_blank' : '_L' );
|
||||||
if (!is_null($value)) {
|
|
||||||
$transTbl = get_html_translation_table();
|
|
||||||
$value = strtr($value, $transTbl);
|
|
||||||
}
|
|
||||||
$nid= $this->storeRecord('_I', $parid, $catNs, $cat, $predxml,
|
$nid= $this->storeRecord('_I', $parid, $catNs, $cat, $predxml,
|
||||||
$objns, $value);
|
$objns, $value);
|
||||||
if (PEAR::isError($nid)) {
|
if (PEAR::isError($nid)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue