Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Show not found if post id is missing for revisions page

givanzd04618315033
diff --git a/admin/controller/content/revisions.php b/admin/controller/content/revisions.php
index 734e2d8..09c9cd6 100644
--- a/admin/controller/content/revisions.php
+++ b/admin/controller/content/revisions.php
@@ -109,6 +109,10 @@ class Revisions extends Base {
}
function index() {
+ if (! isset($this->options[$this->object . '_id'])) {
+ $this->notFound();
+ }
+
$view = $this->view;
$modelName = $this->object . '_content_revision';
$revisions = model($modelName);