Commit 9eff08c132a249b35b6821728edff5ecd221793c

Authored by Edmar Moretti
1 parent 39fe1043
Exists in master

--no commit message

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
admin/php/xml.php
@@ -491,7 +491,7 @@ function geraXmlRSS($locaplic,$sql,$descricao) @@ -491,7 +491,7 @@ function geraXmlRSS($locaplic,$sql,$descricao)
491 $xml .= "<rss version='2.0'>"; 491 $xml .= "<rss version='2.0'>";
492 $xml .= "<channel>\n"; 492 $xml .= "<channel>\n";
493 $xml .= "<title>RSS</title>\n"; 493 $xml .= "<title>RSS</title>\n";
494 - $xml .= "<description>$descricao</description>\n"; 494 + $xml .= "<description>".str_replace("&","&amp;",$descricao)."</description>\n";
495 $xml .= "<link></link>\n"; 495 $xml .= "<link></link>\n";
496 $xml .= "<docs></docs>\n"; 496 $xml .= "<docs></docs>\n";
497 $xml .= "<copyright>Gerado pelo i3Geo</copyright>\n"; 497 $xml .= "<copyright>Gerado pelo i3Geo</copyright>\n";
@@ -527,7 +527,7 @@ function geraXmlAtlas($locaplic,$editores) @@ -527,7 +527,7 @@ function geraXmlAtlas($locaplic,$editores)
527 error_reporting(0); 527 error_reporting(0);
528 $dbh = ""; 528 $dbh = "";
529 include($locaplic."/admin/php/conexao.php"); 529 include($locaplic."/admin/php/conexao.php");
530 - 530 +
531 if($convUTF) 531 if($convUTF)
532 $xml = "<"."\x3F"."xml version='1.0' encoding='UTF-8' "."\x3F".">"; 532 $xml = "<"."\x3F"."xml version='1.0' encoding='UTF-8' "."\x3F".">";
533 else 533 else
@@ -914,7 +914,7 @@ function array_in_array($needle, $haystack) @@ -914,7 +914,7 @@ function array_in_array($needle, $haystack)
914 } 914 }
915 function xmlTexto_prepara($texto) 915 function xmlTexto_prepara($texto)
916 { 916 {
917 - return str_replace("&","&",$texto); 917 + return str_replace("&","&amp;",$texto);
918 } 918 }
919 function entity_decode($texto) 919 function entity_decode($texto)
920 { 920 {