Modify

Ticket #9464 (closed Patch - Bug Fix: Fixed)

Opened 2 years ago

Last modified 13 months ago

RSS output from MythWeb is invalid for programs such as "Law & Order"

Reported by: mattpyne@… Owned by: wagnerrp
Priority: minor Milestone: 0.25
Component: Plugin - MythWeb Version: Master Head
Severity: medium Keywords: RSS
Cc: Ticket locked: yes

Description

The FeedItem?.php does not correctly covert incoming strings into valid XML. It does not deal with strings that contain <,> or &.

Attachments

patch2.diff (1018 bytes) - added by anonymous 2 years ago.
Function to replace <,>,& with XML escape sequences.

Change History

Changed 2 years ago by anonymous

Function to replace <,>,& with XML escape sequences.

comment:1 Changed 2 years ago by kenni

  • Status changed from new to assigned

comment:2 Changed 21 months ago by wagnerrp

  • Owner changed from kormoc to wagnerrp
  • Milestone changed from unknown to 0.25

Cleanup RSS special characters

This sanitizes the content output by the RSS/ATOM generator using the built in htmlspecialchars() function.

Fixes #9464

Branch: master Changeset: 08563e3631d145fb940772e6f0c683a08d55295d

comment:3 Changed 21 months ago by wagnerrp

  • Status changed from assigned to closed
  • Resolution set to Fixed

comment:4 Changed 16 months ago by jonas@…

  • Status changed from closed to new
  • Resolution Fixed deleted

This bug also affects 0.24-fixes

An example :

...
<item>
<title>NCIS - Mr & Ms Smith</title>
<link>http://192.168.0.2/mythweb/tv/detail/1056/1327699200</link>
<pubDate>Fri, 27 Jan 2012 22:30:00 +0100</pubDate>
<description><![CDATA[Un officier de marine a été abattu au volant de sa voiture, sur l'autoroute, tandis qu'il discutait au téléphone avec son épouse. Le NCIS est chargé de l'affaire. La victime serait un certain Jerry Smith, mais en interrogeant son supérieur, l'équipe d'enquêteurs découvre qu'il existe un second Jerry Smith, bien en vie celui-là. Le mort menait-il une double vie ? Les empreintes du cadavre prouvent que c'est bien le véritable Smith qui a été assassiné. L'autre se nomme en réalité John Kirby. Les deux hommes ont servi ensemble par le passé et auraient échangé leurs identités et leurs fonctions. Reste à découvrir le mobile du meurtre... ]]></description>
</item>
...

Mythweb on ubuntu Ubuntu 10.04.3 LTS

Package version : 2:0.24.1+fixes.20110930.f006f90-0ubuntu0mythbuntu1

comment:5 Changed 13 months ago by beirdo

  • Status changed from new to closed
  • Resolution set to Fixed
  • Ticket locked set

This will remain not fixes in 0.24.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.