diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 22:50:35 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-22 22:50:35 +0000 |
commit | 16e27412e79bb0de47dd8e2d4ba7cffdd8945aaf (patch) | |
tree | edbf228582ca2ab334e27ad02ccf8821344e5a74 /engine/lib | |
parent | 77537c157df1ca44a2e8f375c04c31580eb89954 (diff) | |
download | elgg-16e27412e79bb0de47dd8e2d4ba7cffdd8945aaf.tar.gz elgg-16e27412e79bb0de47dd8e2d4ba7cffdd8945aaf.tar.bz2 |
Fixes #2548 do not need include_post_data() because of changes to rewrite rules
git-svn-id: http://code.elgg.org/elgg/trunk@7908 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/web_services.php | 37 |
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 |