* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*
* @copyright Incutio Ltd 2010 (http://www.incutio.com)
* @version 1.7.4 7th September 2010
* IXR_Value
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_Value {
var $data;
* IXR_MESSAGE
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*
*/
class IXR_Message
* IXR_Server
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_Server
{
function output($xml)
{
- $xml = '<?xml version="1.0"?>'."\n".$xml;
+ $charset = function_exists('get_option') ? get_option('blog_charset') : '';
+ if ($charset)
+ $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml;
+ else
+ $xml = '<?xml version="1.0"?>'."\n".$xml;
$length = strlen($xml);
header('Connection: close');
header('Content-Length: '.$length);
- header('Content-Type: text/xml');
+ if ($charset)
+ header('Content-Type: text/xml; charset='.$charset);
+ else
+ header('Content-Type: text/xml');
header('Date: '.date('r'));
echo $xml;
exit;
* IXR_Request
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_Request
{
* IXR_Client
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*
*/
class IXR_Client
if (!$this->path) {
$this->path = '/';
}
+
+ if ( ! empty( $bits['query'] ) ) {
+ $this->path .= '?' . $bits['query'];
+ }
} else {
$this->server = $server;
$this->path = $path;
* IXR_Error
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_Error
{
* IXR_Date
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_Date {
var $year;
* IXR_Base64
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_Base64
{
* IXR_IntrospectionServer
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_IntrospectionServer extends IXR_Server
{
* IXR_ClientMulticall
*
* @package IXR
- * @since 1.5
+ * @since 1.5.0
*/
class IXR_ClientMulticall extends IXR_Client
{