Permalink
Browse files

Check if HTTP_RAW_POST_DATA is set to avoid undefined var warning. Pr…

…ops Juergen. fixes #2350

git-svn-id: http://svn.automattic.com/wordpress/trunk@3498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent f035ac9 commit 60ccea94fd03f57923232270bb15b9c0f72bcdbe ryan committed Jan 30, 2006
Showing with 2 additions and 1 deletion.
  1. +2 −1 xmlrpc.php
View
@@ -6,7 +6,8 @@
$_COOKIE = array();
# fix for mozBlog and other cases where '<?xml' isn't on the very first line
-$HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
+if ( isset($HTTP_RAW_POST_DATA) )
+ $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
include('./wp-config.php');

0 comments on commit 60ccea9

Please sign in to comment.