Dotclear

Changeset 2709:d70f7e2cb2c9


Ignore:
Timestamp:
05/15/14 08:35:38 (11 years ago)
Author:
Dsls
Branch:
2.6
Children:
2710:f99841305743, 2712:121f94747a10
Message:

Strenghened xmlrpc auth, categories warning.

Many, many thanks to Egidio Romano for the advice.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r2566 r2709  
    7373 
    7474     foreach ($categories as $category) { 
    75           if (!empty($category->item_id)) { 
     75          if (!empty($category->item_id) && !empty($category->left) && !empty($category->right)) { 
    7676               $core->blog->updCategoryPosition($category->item_id, $category->left, $category->right); 
    7777          } 
  • inc/core/class.dc.xmlrpc.php

    r2566 r2709  
    264264     private function setUser($user_id,$pwd) 
    265265     { 
    266           if ($this->core->auth->userID() == $user_id) { 
    267                return true; 
    268           } 
    269  
    270           if ($this->core->auth->checkUser($user_id,$pwd) !== true) { 
     266          if (empty($pwd) || $this->core->auth->checkUser($user_id,$pwd) !== true) { 
    271267               throw new Exception('Login error'); 
    272268          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map