Blogger Import prepends '>' to all content in PHP 5.3
|Reported by:||ampt||Owned by:|
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.