diff --git a/immutable-history/src/HumanReadableChangeLog/ChangeLogListController.php b/immutable-history/src/HumanReadableChangeLog/ChangeLogListController.php
index <HASH>..<HASH> 100644
--- a/immutable-history/src/HumanReadableChangeLog/ChangeLogListController.php
+++ b/immutable-history/src/HumanReadableChangeLog/ChangeLogListController.php
@@ -70,12 +70,14 @@ class ChangeLogListController implements MiddlewareInterface
             );
         } catch (NotAllowedException $e) {
             $loginUrl = '/login?redirect=' . urlencode($request->getUri()->getPath()
-                    . '?' . http_build_query($request->getQueryParams()));
+                . '?' . http_build_query($request->getQueryParams()));
             $response = new HtmlResponse('Access denied. Try <a href="' . $loginUrl . '">logging in</a>.');
 
             return $response;
         }
 
+        ini_set('memory_limit', '4000M'); //Needed for very long reports, such as over 1 year.
+
         $queryParams = $request->getQueryParams();
         $days = filter_var(
             isset($queryParams['days']) ? $queryParams['days'] : $this->defaultNumberOfDays,
Fix minor issues with change log report genreator.