mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Fixed XML parsing error of ampersand '&' for study description
Ampersand within study description was causing error messages in rdf files while XML parsing. Now this is fixed (by wrapping with CDATA)
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ if($studiengang_kz!=0)
|
||||
{
|
||||
$stg_obj = new studiengang();
|
||||
$stg_obj->load($studiengang_kz);
|
||||
$xml.='<studiengang_bezeichnung>'.$stg_obj->bezeichnung.'</studiengang_bezeichnung>';
|
||||
$xml .= '<studiengang_bezeichnung><![CDATA['. $stg_obj->bezeichnung. ']]></studiengang_bezeichnung>';
|
||||
}
|
||||
|
||||
if($titel!='')
|
||||
|
||||
@@ -489,7 +489,7 @@ while ($row=$dbo->db_fetch_object())
|
||||
$stg_kurzbz=strtoupper($row->typ.$row->kurzbz);
|
||||
?>
|
||||
<RDF:Description RDF:about="<?php echo $rdf_url.$stg_kurzbz; ?>" >
|
||||
<VERBAND:name><![CDATA[<?php echo $row->kurzbzlang.' ('.$stg_kurzbz.') - '.htmlspecialchars($row->bezeichnung); ?>]]></VERBAND:name>
|
||||
<VERBAND:name><![CDATA[<?php echo $row->kurzbzlang.' ('.$stg_kurzbz.') - '.$row->bezeichnung; ?>]]></VERBAND:name>
|
||||
<VERBAND:stg><![CDATA[<?php echo $stg_kurzbz; ?>]]></VERBAND:stg>
|
||||
<VERBAND:stg_kz NC:parseType="Integer"><![CDATA[<?php echo $row->studiengang_kz; ?>]]></VERBAND:stg_kz>
|
||||
</RDF:Description>
|
||||
|
||||
Reference in New Issue
Block a user