diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-12 14:56:20 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-12 14:56:20 +0000 |
commit | a2c37d05458bc25168bbfc892604208ffc17384b (patch) | |
tree | e8b2360af1be307cc9259a733700e4c4e4fcf5dc /engine/lib/api.php | |
parent | c8c1ed7b095be798f459cd75a18d0dc249068ca6 (diff) | |
download | elgg-a2c37d05458bc25168bbfc892604208ffc17384b.tar.gz elgg-a2c37d05458bc25168bbfc892604208ffc17384b.tar.bz2 |
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
Diffstat (limited to 'engine/lib/api.php')
-rw-r--r-- | engine/lib/api.php | 6 |
1 files changed, 3 insertions, 3 deletions
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); |