One more TODO: Query-String handling in action controller

This commit is contained in:
Thomas Gelf 2014-02-18 17:43:57 +00:00
parent 69538270f7
commit 9e66d22c76
1 changed files with 5 additions and 1 deletions

View File

@ -228,7 +228,11 @@ class ActionController extends Zend_Controller_Action
$base = $this->_request->getModuleName() . '/' .
$this->_request->getControllerName() . '/' .
$this->_request->getActionName();
return $_SERVER['QUERY_STRING'] !== '' ? $base . '?' . $_SERVER['QUERY_STRING'] : $base;
// TODO: We should NOT fiddle with Querystring here in the middle of nowhere
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] !== '') {
return $base . '?' . $_SERVER['QUERY_STRING'];
}
return $base;
}
/**