Skip to content

Commit

Permalink
Fixed missing image file not throwing 404 p#1713
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 23, 2017
1 parent 0668a47 commit d3695b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Added Page `media_order` capability to manually order page media via a page header
1. [](#bugfix)
* Fixed GPM update issue with filtered slugs [#1711](https://github.com/getgrav/grav/issues/1711)
* Fixed issue with missing image file not throwing 404 properly [#1713](https://github.com/getgrav/grav/issues/1713)

# v1.3.7
## 10/18/2017
Expand Down
3 changes: 3 additions & 0 deletions system/src/Grav/Common/Grav.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ public function fallbackUrl($path)
}
Utils::download($page->path() . DIRECTORY_SEPARATOR . $uri->basename(), $download);
}

// Nothing found
return false;
}

return $page;
Expand Down

0 comments on commit d3695b2

Please sign in to comment.