Skip to content

Commit

Permalink
Drop stale references to 'xml-rpc'
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerysong committed Jan 29, 2013
1 parent a6b70f9 commit ad4ba9f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion image.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
require_once 'lib/init.php';

// Check to see if they've got an interface session or a valid API session, if not GTFO
if (!Session::exists('interface', $_COOKIE[Config::get('session_name')]) AND !Session::exists('api', $_REQUEST['auth']) AND !Session::exists('xml-rpc', $_REQUEST['auth'])) {
if (!Session::exists('interface', $_COOKIE[Config::get('session_name')]) && !Session::exists('api', $_REQUEST['auth'])) {
debug_event('image','Access denied, checked cookie session:' . $_COOKIE[Config::get('session_name')] . ' and auth:' . $_REQUEST['auth'], 1);
exit;
}
Expand Down
4 changes: 0 additions & 4 deletions lib/class/access.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,6 @@ public static function validate_type($type) {
case 'network':
return $type;
break;
case 'xml-rpc':
return 'rpc';
break;
default:
return 'stream';
break;
Expand Down Expand Up @@ -506,7 +503,6 @@ public function get_user_name() {
public function get_type_name() {

switch ($this->type) {
case 'xml-rpc':
case 'rpc':
return T_('API/RPC');
break;
Expand Down
2 changes: 0 additions & 2 deletions lib/class/session.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public static function create($data) {

// Regenerate the session ID to prevent fixation
switch ($data['type']) {
case 'xml-rpc':
case 'api':
$key = md5(uniqid(rand(), true));
break;
Expand Down Expand Up @@ -258,7 +257,6 @@ public static function check() {
public static function exists($type, $key, $data=array()) {
// Switch on the type they pass
switch ($type) {
case 'xml-rpc':
case 'api':
$key = Dba::escape($key);
$time = time();
Expand Down

0 comments on commit ad4ba9f

Please sign in to comment.