|
From: <gem...@li...> - 2013-04-15 12:36:27
|
Revision: 1230
http://sourceforge.net/p/gemstracker/code/1230
Author: mennodekker
Date: 2013-04-15 12:36:24 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
Fixing urlencode errors: only use get parameters, not post (post is stored in requestcache when needed)
Modified Paths:
--------------
trunk/library/classes/GemsEscort.php
trunk/library/classes/MUtil/Html/UrlArrayAttribute.php
Modified: trunk/library/classes/GemsEscort.php
===================================================================
--- trunk/library/classes/GemsEscort.php 2013-04-15 12:15:09 UTC (rev 1229)
+++ trunk/library/classes/GemsEscort.php 2013-04-15 12:36:24 UTC (rev 1230)
@@ -1025,7 +1025,7 @@
// Organization switcher
$orgSwitch = MUtil_Html::create('div', array('id' => 'organizations'));
$currentId = $user->getCurrentOrganizationId();
- $params = $this->request->getParams(); //Use only get params, not post
+ $params = $this->request->getQuery(); //Use only get params, not post
unset($params['error_handler']); // If present, this is an object and causes a warning
unset($params[Gems_Util_RequestCache::RESET_PARAM]);
$currentUri = $this->view->url($params, null, true);
Modified: trunk/library/classes/MUtil/Html/UrlArrayAttribute.php
===================================================================
--- trunk/library/classes/MUtil/Html/UrlArrayAttribute.php 2013-04-15 12:15:09 UTC (rev 1229)
+++ trunk/library/classes/MUtil/Html/UrlArrayAttribute.php 2013-04-15 12:36:24 UTC (rev 1230)
@@ -123,7 +123,7 @@
// will add the existing parameters without escaping.
$request = $this->getRequest();
- foreach ($request->getParams() as $key => $value) {
+ foreach ($request->getQuery() as $key => $value) {
if (!array_key_exists($key, $url_parameters)) {
// E.g. Exceptions are stored as parameters :(
if (is_array($value)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|