aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/web_services.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/web_services.php')
-rw-r--r--engine/lib/web_services.php37
1 files changed, 0 insertions, 37 deletions
diff --git a/engine/lib/web_services.php b/engine/lib/web_services.php
index 33f413c5c..f39f5aef1 100644
--- a/engine/lib/web_services.php
+++ b/engine/lib/web_services.php
@@ -162,12 +162,6 @@ function authenticate_method($method) {
throw new APIException(elgg_echo('APIException:MethodCallNotImplemented', array($method)));
}
- // make sure that POST variables are available if needed
- // @todo this may not be needed anymore due to adding %{QUERY_STRING} in .htaccess in 1.7.2
- if (get_call_method() === 'POST' && empty($_POST)) {
- include_post_data();
- }
-
// check API authentication if required
if ($API_METHODS[$method]["require_api_auth"] == true) {
$api_pam = new ElggPAM('api');
@@ -314,37 +308,6 @@ function get_post_data() {
}
/**
- * This fixes the post parameters that are munged due to page handler
- *
- * @since 1.7.0
- *
- * @return void
- */
-function include_post_data() {
-
- $postdata = get_post_data();
-
- if (isset($postdata)) {
- $query_arr = elgg_parse_str($postdata);
-
- // grrrr... magic quotes is turned on so we need to strip slashes
- if (ini_get_bool('magic_quotes_gpc')) {
- if (function_exists('stripslashes_deep')) {
- // defined in input.php to handle magic quotes
- $query_arr = stripslashes_deep($query_arr);
- }
- }
-
- if (is_array($query_arr)) {
- foreach ($query_arr as $name => $val) {
- set_input($name, $val);
- }
- }
-
- }
-}
-
-/**
* Verify that the required parameters are present
*
* @param string $method Method name