aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-11 21:57:54 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-11 21:57:54 +0000
commit00aba1bbcc50f1190c5694791d58276f96188cff (patch)
treeb1b9d538c1ea70b621693afaff2d5e0d9282634e /engine/lib/elgglib.php
parentde0149375cdb6f6667adfe3f83b0f99d8c94b855 (diff)
downloadelgg-00aba1bbcc50f1190c5694791d58276f96188cff.tar.gz
elgg-00aba1bbcc50f1190c5694791d58276f96188cff.tar.bz2
Fixes #1501: Setting ini for mbstring.internal_encoding to utf8 to work around a PHP bug. Replaced calls to parse_str() with elgg_parse_str().
git-svn-id: http://code.elgg.org/elgg/trunk@3932 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 705852ac9..52b4ecf32 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -943,11 +943,11 @@ function get_submenu() {
$item_params = array();
if (isset($uri_info['query'])) {
$uri_info['query'] = html_entity_decode($uri_info['query']);
- parse_str($uri_info['query'], $uri_params);
+ elgg_parse_str($uri_info['query'], $uri_params);
}
if (isset($item_info['query'])) {
$item_info['query'] = html_entity_decode($item_info['query']);
- parse_str($item_info['query'], $item_params);
+ elgg_parse_str($item_info['query'], $item_params);
}
$uri_info['path'] = trim($uri_info['path'], '/');
@@ -2521,7 +2521,7 @@ function elgg_validate_action_url($link) {
$url = parse_url($link);
if (isset($url['query'])) {
- parse_str($url['query'], $query);
+ elgg_parse_str($url['query'], $query);
} else {
$query = array();
}
@@ -2550,7 +2550,7 @@ function elgg_http_remove_url_query_element($url, $element) {
$url_array = parse_url($url);
if (isset($url_array['query'])) {
- parse_str($url_array['query'], $query);
+ elgg_parse_str($url_array['query'], $query);
} else {
// nothing to remove. Return original URL.
return $url;
@@ -2577,7 +2577,7 @@ function elgg_http_add_url_query_elements($url, array $elements) {
$url_array = parse_url($url);
if (isset($url_array['query'])) {
- parse_str($url_array['query'], $query);
+ elgg_parse_str($url_array['query'], $query);
} else {
$query = array();
}