Recent Topics

1 Dec 20, 2008 20:55    

My b2evolution Version: 2.x

I got this problem when I wanted to post by scribe fire or live writer:

I created a post like this in html area:
<img src="http://localhost/v/blogs/a/50px-commons-logo.png" /><p>test</p>

and after I published it into my b2 blog it appeared like this:
img src="http://localhost/v/blogs/a/50px-commons-logo.png” /ptest/p

It seems like that when I publish a post it automatically remove the <> tags!
and I don't know why?

Would u please helping me?!

3 Feb 11, 2009 03:40

I just started seeing this problem. This is too bad and it is really annoying. I guess we'll have to wait until PHP releases a fix?

4 Feb 11, 2009 11:05

For kicks, crack open /xmlrpc/xmlrpc.php and change this bit :

// Trim requests (used by XML-RPC library); fix for mozBlog and other cases where '<?xml' isn't on the very first line
$HTTP_RAW_POST_DATA = str_replace( '&', '[amp]', trim( $HTTP_RAW_POST_DATA ) );

Then crack open /inc/xmlrpc/model/_xmlrpcs.funcs.php and change this bit :

/**
 * Create a new Item and return an XML-RPC response
 *
 * @param string HTML
 * @param string HTML
 * @param string date
 * @param integer main category
 * @param array of integers : extra categories
 * @param string status
 * @return xmlrpcmsg
 */
function xmlrpcs_new_item( $post_title, $content, $post_date, $main_cat, $cat_IDs, $status )
{
	$post_title = str_replace( '[amp]', '&', $post_title );
	$content = str_replace( '[amp]', '&', $content );

Then make a new post and see if stuff works.

¥


Form is loading...