From 387a974396dbae274f31dd68968980e813dd4d79 Mon Sep 17 00:00:00 2001 From: euromark Date: Mon, 3 Sep 2012 13:16:40 +0200 Subject: [PATCH] avoid path being made absolute twice --- lib/Cake/View/MediaView.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Cake/View/MediaView.php b/lib/Cake/View/MediaView.php index e4e6ea7e9d6..728d42a836c 100644 --- a/lib/Cake/View/MediaView.php +++ b/lib/Cake/View/MediaView.php @@ -69,11 +69,7 @@ public function render($view = null, $layout = null) { $name = $download = $id = $modified = $path = $cache = $mimeType = $compress = null; extract($this->viewVars, EXTR_OVERWRITE); - if (is_dir($path)) { - $path = $path . $id; - } else { - $path = APP . $path . $id; - } + $path = $path . $id; if (is_array($mimeType)) { $this->response->type($mimeType);