Ticket #4422: xmlrpc.php.patch
File xmlrpc.php.patch, 773 bytes (added by , 16 years ago) |
---|
-
xmlrpc.php
1429 1429 $type = $data['type']; 1430 1430 $bits = $data['bits']; 1431 1431 1432 if ( !$this->login_pass_ok($user_login, $user_pass) ) 1433 return $this->error; 1434 1432 1435 if(!empty($data["overwrite"]) && ($data["overwrite"] == true)) { 1433 1436 // Get postmeta info on the object. 1434 1437 $old_file = $wpdb->get_row(" … … 1449 1452 1450 1453 logIO('O', '(MW) Received '.strlen($bits).' bytes'); 1451 1454 1452 if ( !$this->login_pass_ok($user_login, $user_pass) )1453 return $this->error;1454 1455 1455 set_current_user(0, $user_login); 1456 1456 if ( !current_user_can('upload_files') ) { 1457 1457 logIO('O', '(MW) User does not have upload_files capability');