Changeset 4510


Ignore:
Timestamp:
Dec 18, 2009, 1:44:30 AM (14 years ago)
Author:
plg
Message:

bug 1334 fixed: for POST mode on pwg.categories.setInfo, pwg.images.setInfo,
pwg.images.addChunk web API methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/ws_functions.inc.php

    r4459 r4510  
    890890  {
    891891    return new PwgError(401, 'Access denied');
     892  }
     893
     894  if (!$service->isPost())
     895  {
     896    return new PwgError(405, "This method requires HTTP POST");
    892897  }
    893898
     
    16661671  }
    16671672
     1673  if (!$service->isPost())
     1674  {
     1675    return new PwgError(405, "This method requires HTTP POST");
     1676  }
     1677
    16681678  $params['image_id'] = (int)$params['image_id'];
    16691679  if ($params['image_id'] <= 0)
     
    19451955  }
    19461956
     1957  if (!$service->isPost())
     1958  {
     1959    return new PwgError(405, "This method requires HTTP POST");
     1960  }
     1961
    19471962  // category_id
    19481963  // name
Note: See TracChangeset for help on using the changeset viewer.