Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…t exist
  • Loading branch information...
commit 4271a910c90fd106284ba2f3696657a03a0faff5 1 parent aa87d9a
Andrew Embler aembler authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 web/concrete/tools/edit_collection_popup.php
4 web/concrete/tools/edit_collection_popup.php
@@ -2,6 +2,10 @@
2 2
3 3 defined('C5_EXECUTE') or die("Access Denied.");
4 4
  5 +if (!Loader::helper('validation/numbers')->integer($_GET['cID'])) {
  6 + die(t('Access Denied'));
  7 +}
  8 +
5 9 $c = Page::getByID($_GET['cID'], 'RECENT');
6 10 $cp = new Permissions($c);
7 11 $canViewPane = false;

0 comments on commit 4271a91

Please sign in to comment.
Something went wrong with that request. Please try again.