Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
[SECURITY] The page limit now has a maximum.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Sep 13, 2018
1 parent 4e7dde6 commit 87b9656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [mediawesome](https://packagist.org/packages/nglasl/silverstripe-mediawesome)

_The current release is **4.0.3**_
_The current release is **4.0.4**_

> This module allows creation of dynamic media holders/pages with CMS customisable types and attributes (blogs, events, news, publications), including versioning.
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/MediaHolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getPaginatedChildren($limit = 5, $sort = 'Date', $order = 'DESC'

$request = $this->getRequest();
if($limitVar = $request->getVar('limit')) {
$limit = $limitVar;
$limit = ($limitVar > 100) ? 100 : $limitVar;
}
if($sortVar = $request->getVar('sort')) {
$sort = $sortVar;
Expand Down

0 comments on commit 87b9656

Please sign in to comment.