Skip to content

Commit

Permalink
Added a commented line (a feature one can enable) in their default co…
Browse files Browse the repository at this point in the history
…ntroller so that they can block default URL params, such as doing http://example.com/refid/4 where you may have wanted the default controller to process refid and 4 as parameters.
  • Loading branch information
volomike committed Nov 5, 2011
1 parent b3a2930 commit c9e2a25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/_controllers/Default/cDefault.php
Expand Up @@ -29,6 +29,12 @@
*
* @package User-Sample-Application
*/

// TURN OFF ACCEPTING URL PARAMETERS ON THIS PAGE
// REDIRECT TO A 404 INSTEAD.
// uncomment the following line to enable it
// $this->request->blockDefaultURLParams();

$asParams = $this->request->getParams();
$sParam1 = @ $asParams[0];

Expand Down

0 comments on commit c9e2a25

Please sign in to comment.