wp_insert_attachment fails on post name check
|Reported by:||dwc||Owned by:||anonymous|
Basically, the wp_insert_attachment post name check fails under the same conditions: if the sanitized title contains a URL-encoded character that happens to match a printf type specifier, the post name check never succeeds. The fix is the same as  and : to use %s for the parameter instead of direct variable substitution.
This issue affects 2.6.2. I haven't tested trunk, but it looks like it still has the problem.