Ok, I think I've worked around this issue, but I'm sure the developers can think of a better way.
I've taken the original code:
[code] if ($myrow = mysql_fetch_array($result)){
do { echo '<item>'."\n"; echo '<title>'.$myrow["software_name"].'</title>'."\n"; echo '<link>'.$sitebaseurl.'system.php?pc='.$myrow["system_uuid"].'&view=summary</link>'."\n"; echo '<description>Computer: '.$myrow["system_name"]. ' User: '.$myrow["net_user_name"].' IP Address: '.ip_trans($myrow["net_ip_address"]).'</description>'."\n"; echo '</item>'."\n"; } while ($myrow = mysql_fetch_array($result)); } [/code]
and changed it to this:
[code] if ($myrow = mysql_fetch_array($result)){ $ConvertedTitle = str_replace("&", "&", $myrow["software_name"]);
do { echo '<item>'."\n"; echo '<title>'.$ConvertedTitle.'</title>'."\n"; echo '<link>'.$sitebaseurl.'system.php?pc='.$myrow["system_uuid"].'&view=summary</link>'."\n"; echo '<description>Computer: '.$myrow["system_name"]. ' User: '.$myrow["net_user_name"].' IP Address: '.ip_trans($myrow["net_ip_address"]).'</description>'."\n"; echo '</item>'."\n"; } while ($myrow = mysql_fetch_array($result)); }[/code]
This seems to do the trick, although I'm not sure why...why doesn't the '&' in the ASCII & still cause an issue?
_________________ Server Info: OS : Windows Server 2003 Auditing: ~300 machines LDAP: Windows Server 2003 Active Directory
|