Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 3 years ago

Closed 2 years ago

#9464 closed Patch - Bug Fix (Fixed)

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 (1)

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

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by anonymous

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

comment:1 Changed 3 years ago by kenni

  • Status changed from new to assigned

comment:2 Changed 3 years ago by wagnerrp

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

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 3 years ago by wagnerrp

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

comment:4 Changed 2 years ago by jonas@…

  • Resolution Fixed deleted
  • Status changed from closed to new

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 2 years ago by beirdo

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

This will remain not fixes in 0.24.

Add 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.