WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13458 closed defect (bug) (wontfix)

Blogger Import prepends '>' to all content in PHP 5.3

Reported by: ampt Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Import Keywords: has-patch, blogger
Focuses: Cc:

Description

The problem is in the AtomParser cdata function. Some calls to strpos are passed an array, which produces a PHP warning. This was fine prior to PHP 5.3 as strpos returns FALSE. As of PHP 5.3 strpos returns NULL when the expected parameter is not a string.

Attached is a patch that checks if strpos is passed an array, which prevents the warning and fixes the problem. There are also other undefined index and warning fixes that I found included in this patch.

Attachments (2)

blogger.diff (5.5 KB) - added by ampt 4 years ago.
13458_2.diff (6.8 KB) - added by ampt 4 years ago.
Additional undefined index fixes, change filename to match ticket

Download all attachments as: .zip

Change History (4)

ampt4 years ago

ampt4 years ago

Additional undefined index fixes, change filename to match ticket

comment:1 ampt4 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Import plugins are no longer a part of core

comment:2 scribu4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.