Horde_Controller_Request uses getPath(), not getUri()
authorChuck Hagenbuch <chuck@horde.org>
Mon, 9 Aug 2010 04:38:14 +0000 (00:38 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 9 Aug 2010 04:38:14 +0000 (00:38 -0400)
framework/View/lib/Horde/View/Helper/Url.php

index cb3388b..f5ab283 100644 (file)
@@ -405,7 +405,7 @@ class Horde_View_Helper_Url extends Horde_View_Helper_Base
             if ($this->controller) {
                 // @todo prepending "/" is a hack, need to fix request object
                 $request = $this->controller->getRequest();
-                $requestUri = '/' . ltrim($request->getUri(), '/');
+                $requestUri = '/' . ltrim($request->getPath(), '/');
             } else {
                 // @todo accessing $_REQUEST directly is a hack
                 $requestUri = $_SERVER['REQUEST_URI'];