Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid path being made absolute twice

  • Loading branch information...
commit 387a974396dbae274f31dd68968980e813dd4d79 1 parent a1edede
@dereuromark dereuromark authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/Cake/View/MediaView.php
View
6 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);
Please sign in to comment.
Something went wrong with that request. Please try again.