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