Make WordPress Core

Opened 19 years ago

Closed 17 years ago

Last modified 17 years ago

#879 closed defect (bug) (fixed)

rss2 import leaves CDATA in $title

Reported by: pgarrett's profile pgarrett Owned by: mdawaffe's profile mdawaffe
Milestone: Priority: normal
Severity: minor Version: 1.5
Component: General Keywords: has-patch 2nd-opinion rss import
Focuses: Cc:

Description

Some feed generators (in this case GeekLog) place the CDATA tag in the title. import-rss.php does not remove it.

changed line 58 to:
$title = str_replace( array('<![CDATA,?]>'), , addslashes( trim($title[1]) ) );

Attachments (1)

879.diff (547 bytes) - added by mdawaffe 17 years ago.

Download all attachments as: .zip

Change History (8)

#1 @pgarrett
19 years ago

  • Patch set to No

#2 @ryan
19 years ago

  • Patch changed from No to Yes

@mdawaffe
17 years ago

#3 @mdawaffe
17 years ago

  • Keywords has-patch 2nd-opinion rss import added
  • Milestone set to 2.1
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

Patch from pgarrett updated and attached.

#4 @ryan
17 years ago

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

(In [4150]) strip CDATA from title. Props pgarrett and mdawaffe. fixes #879

#5 @ryan
17 years ago

(In [4237]) strip CDATA from title. Props pgarrett and mdawaffe. fixes #879

#6 @foolswisdom
17 years ago

  • Milestone changed from 2.1 to 2.0.5

#7 @(none)
17 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.