Skip to content

Commit

Permalink
avoid path being made absolute twice
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 3, 2012
1 parent a1edede commit 387a974
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Cake/View/MediaView.php
Expand Up @@ -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);
Expand Down

0 comments on commit 387a974

Please sign in to comment.