#13458 closed defect (bug) (wontfix)
Blogger Import prepends '>' to all content in PHP 5.3
| Reported by: |
|
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)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Additional undefined index fixes, change filename to match ticket