[wp-cvs] wordpress/wp-admin xmlrpc.php,1.11,1.12
Michel Valdrighi
michelvaldrighi at users.sourceforge.net
Fri Aug 27 13:31:25 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11031/wp-admin
Modified Files:
xmlrpc.php
Log Message:
fix0red mw.newMediaObject, added byte-length logging (in which we learn Ecto 1.1.8 sends too many bytes, it seems)
Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/xmlrpc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** xmlrpc.php 27 Aug 2004 08:46:24 -0000 1.11
--- xmlrpc.php 27 Aug 2004 13:31:22 -0000 1.12
***************
*** 741,744 ****
--- 741,746 ----
$file_url = get_settings('fileupload_url');
+ logIO('O', '(MW) Received '.strlen($bits).' bytes');
+
if (!$this->login_pass_ok($user_login, $user_pass)) {
return $this->error;
***************
*** 754,761 ****
}
! if(get_settings('fileupload_minlevel') > $userlevel) {
// User has not enough privileges
logIO('O', '(MW) Not enough privilege: user level too low');
! $this->error = new IXR_Error(401, 'You are not allowed to upload files to this site.');
return $this->error;
}
--- 756,763 ----
}
! if(get_settings('fileupload_minlevel') > $user_data->user_level) {
// User has not enough privileges
logIO('O', '(MW) Not enough privilege: user level too low');
! $this->error = new IXR_Error(401, 'You are not allowed to upload files to this site.sdff'.$user_data->user_level);
return $this->error;
}
***************
*** 770,774 ****
$prefix = '/';
! if(!strlen(trim($name))) {
// Create the path
$localpath = $file_realpath.$prefix.$name;
--- 772,776 ----
$prefix = '/';
! if(!empty($name)) {
// Create the path
$localpath = $file_realpath.$prefix.$name;
***************
*** 781,785 ****
@chmod($localpath, 0666);
! if( $success ) {
$resp = array($url);
return $resp;
--- 783,787 ----
@chmod($localpath, 0666);
! if($success) {
$resp = array($url);
return $resp;
More information about the cvs
mailing list