X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ftwitapiaccount.php;h=3a9b8ba3e2f60db4abc96211c6b6821dc3233a20;hb=4272da4e9e2ab9c99b4b9897f04c92cd7987cb8b;hp=716ddd1543a3d3c22b7fbb8c3bc95131a68ef121;hpb=d57bc1b8e99a432d7f6425d0c8836a3c4928581a;p=quix0rs-gnu-social.git diff --git a/actions/twitapiaccount.php b/actions/twitapiaccount.php index 716ddd1543..3a9b8ba3e2 100644 --- a/actions/twitapiaccount.php +++ b/actions/twitapiaccount.php @@ -61,6 +61,11 @@ class TwitapiaccountAction extends TwitterapiAction { function update_location($args, $apidata) { parent::handle($args); + if ($_SERVER['REQUEST_METHOD'] != 'POST') { + $this->client_error(_('This method requires a POST.'), 400, $apidata['content-type']); + exit(); + } + $location = trim($this->arg('location')); if (!is_null($location) && strlen($location) > 255) {