diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-08 17:05:02 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-07-08 17:05:02 +0000 |
commit | 0767904f516fc29ab76807576763e2ff805a1483 (patch) | |
tree | 07a275dfafbb3c6d306e48570b3b584c0d668291 | |
parent | b016d37b4e4ad845b98599f5784e30fc696e3e29 (diff) | |
download | elgg-0767904f516fc29ab76807576763e2ff805a1483.tar.gz elgg-0767904f516fc29ab76807576763e2ff805a1483.tar.bz2 |
Closes #1111: Using substr instead of parse_url.
git-svn-id: https://code.elgg.org/elgg/trunk@3398 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/pagehandler.php | 8 | ||||
-rw-r--r-- | version.php | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php index b993469d8..23594c5c7 100644 --- a/engine/lib/pagehandler.php +++ b/engine/lib/pagehandler.php @@ -24,15 +24,15 @@ set_context($handler);
- $query = parse_url($_SERVER['REQUEST_URI']);
- if (isset($query['query'])) {
- parse_str($query['query'], $query_arr);
+ $query = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?')+1);//parse_url($_SERVER['REQUEST_URI']);
+ if (isset($query)) {
+ parse_str($query, $query_arr);
if (is_array($query_arr)) {
foreach($query_arr as $name => $val) {
set_input($name, $val);
}
}
- }
+ }
$page = explode('/',$page);
if (!isset($CONFIG->pagehandler) || empty($handler)) {
diff --git a/version.php b/version.php index d77a46967..85b93c9de 100644 --- a/version.php +++ b/version.php @@ -13,7 +13,7 @@ * @link http://elgg.org/
*/
- $version = 2009070601; // YYYYMMDD = Elgg Date + $version = 2009070801; // YYYYMMDD = Elgg Date // XX = Interim incrementer
$release = '1.5'; // Human-friendly version name
|