﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
3906,Windows Live Writer can't upload image,momo360modena,westi,"Now :

{{{
        $this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message);
        if (trim($this->message) == '') {
            return false;
        }
        $this->_parser = xml_parser_create();
}}}

Fix :

{{{
$rx = '/<?xml.*encoding=[\'""](.*?)[\'""].*?>/m';				
  if ( preg_match($rx, $this->message, $m) ) {
  $encoding = strtoupper($m[1]);
} 
else {
  $encoding = 'UTF-8';
}
$this->_parser = xml_parser_create($encoding);
}}}

Source :
http://blog.kingtch.com/2007/02/01/55/upload-image-with-windows-live-writer-2.html

Verify on 2 hosts PHP 5.2

",defect (bug),closed,normal,,XML-RPC,2.1.2,minor,worksforme,"wlw, bug, php5.2, 5.2, windows, live, writer, upload, image reporter-feedback",
