Browse files

fixing SQL error when trying to edit attributes on a page that doesn'…

…t exist
  • Loading branch information...
1 parent aa87d9a commit 4271a910c90fd106284ba2f3696657a03a0faff5 @aembler aembler committed May 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 web/concrete/tools/edit_collection_popup.php
View
4 web/concrete/tools/edit_collection_popup.php
@@ -2,6 +2,10 @@
defined('C5_EXECUTE') or die("Access Denied.");
+if (!Loader::helper('validation/numbers')->integer($_GET['cID'])) {
+ die(t('Access Denied'));
+}
+
$c = Page::getByID($_GET['cID'], 'RECENT');
$cp = new Permissions($c);
$canViewPane = false;

0 comments on commit 4271a91

Please sign in to comment.