From a2c37d05458bc25168bbfc892604208ffc17384b Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 12 Feb 2010 14:56:20 +0000 Subject: Fixes #1512: Using a helper function for mb_parse_str() instead of wrapping it exactly. git-svn-id: http://code.elgg.org/elgg/trunk@3934 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/api.php') diff --git a/engine/lib/api.php b/engine/lib/api.php index ffb1e16af..d123ff360 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -560,7 +560,7 @@ function include_post_data() { $postdata = get_post_data(); if (isset($postdata)) { - elgg_parse_str($postdata, $query_arr); + $query_arr = elgg_parse_str($postdata); if (is_array($query_arr)) { foreach($query_arr as $name => $val) { set_input($name, $val); @@ -1342,7 +1342,7 @@ function list_all_apis() { /** * The auth.gettoken API. * This API call lets a user log in, returning an authentication token which can be used - * to authenticate a user for a period of time. It is passed in future calls as the parameter + * to authenticate a user for a period of time. It is passed in future calls as the parameter * auth_token. * * @param string $username Username @@ -1439,7 +1439,7 @@ function service_handler($handler, $request) { // setup the input parameters since this comes through rewrite rule $query = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?')+1); if (isset($query)) { - elgg_parse_str($query, $query_arr); + $query_arr = elgg_parse_str($query); if (is_array($query_arr)) { foreach($query_arr as $name => $val) { set_input($name, $val); -- cgit v1.2.3