We no longer need the ISSO_CHECK_POST_REFERER because we made BSInput::_checkPostRefe...
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 23 Jan 2008 20:45:57 +0000 (15:45 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 23 Jan 2008 20:45:57 +0000 (15:45 -0500)
* Input.php:
(BSInput::__construct): Remove the code that called _checkPostReferer()
(BSInput::checkPostReferer): Removed the _ from the old name and made it public

Input.php

index 9530d499abe144c99edcd3d2e8f92a64b6d8eef7..bc8d107fb567b20940bc8fc322efdf28c4cb6d37 100644 (file)
--- a/Input.php
+++ b/Input.php
@@ -74,10 +74,6 @@ define('TYPE_BIN', 128);
 *
 * This class is responsible for cleaning input.
 *
-* Constants:
-*              ISSO_CHECK_POST_REFERER - Will check to make sure that on POSTed
-*                                                                      data, the referer matches the host
-*
 * @author              Blue Static
 * @copyright   Copyright (c)2005 - 2008, Blue Static
 * @package             ISSO
@@ -112,11 +108,6 @@ class BSInput
                BSApp::debug('register_globals = ' . ini_get('register_globals'));
                
                $this->_sanitizeInputData();
-               
-               if (defined('ISSO_CHECK_POST_REFERER'))
-               {
-                       $this->_checkPostReferer();
-               }
        }
        
        // ###################################################################
@@ -404,7 +395,7 @@ class BSInput
        /**
        * Checks to see if a POST refer is actually from us
        */
-       private function _checkPostReferer()
+       public function checkPostReferer()
        {
                if ($this->getHttpMethod() == 'post')
                {