summaryrefslogtreecommitdiff
path: root/system/libraries/Input.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-23 12:42:57 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-23 12:42:57 -0800
commit3e8e13bd2533ff7e3493b27c8a8587dfb65e1b26 (patch)
tree4b89142230e516b3d327f4e835edb49c76fa237f /system/libraries/Input.php
parent05c50a052348a4ae664e0b4ca475f9fb3228f24b (diff)
Updated Kohana to r4728
Diffstat (limited to 'system/libraries/Input.php')
-rw-r--r--system/libraries/Input.php31
1 files changed, 1 insertions, 30 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php
index 04403854..7a277317 100644
--- a/system/libraries/Input.php
+++ b/system/libraries/Input.php
@@ -2,7 +2,7 @@
/**
* Input library.
*
- * $Id: Input.php 4720 2009-12-17 21:15:03Z isaiah $
+ * $Id: Input.php 4727 2009-12-23 19:03:05Z isaiah $
*
* @package Core
* @author Kohana Team
@@ -79,35 +79,6 @@ class Input_Core {
Kohana_Log::add('debug', 'Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes');
}
- // register_globals is enabled
- if (ini_get('register_globals'))
- {
- if (isset($_REQUEST['GLOBALS']))
- {
- // Prevent GLOBALS override attacks
- exit('Global variable overload attack.');
- }
-
- // Destroy the REQUEST global
- $_REQUEST = array();
-
- // These globals are standard and should not be removed
- $preserve = array('GLOBALS', '_REQUEST', '_GET', '_POST', '_FILES', '_COOKIE', '_SERVER', '_ENV', '_SESSION');
-
- // This loop has the same effect as disabling register_globals
- foreach (array_diff(array_keys($GLOBALS), $preserve) as $key)
- {
- global $$key;
- $$key = NULL;
-
- // Unset the global variable
- unset($GLOBALS[$key], $$key);
- }
-
- // Warn the developer about register globals
- Kohana_Log::add('debug', 'Disable register_globals! It is evil and deprecated: http://php.net/register_globals');
- }
-
if (is_array($_GET))
{
foreach ($_GET as $key => $val)