Changeset 2794
- Timestamp:
- 11/11/08 22:10:39 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/sginput/htdocs/system/classes/superglobal.php
r2792 r2794 10 10 protected $values = array(); 11 11 12 function SuperGlobal($array)12 function __construct(array $array) 13 13 { 14 14 $values['default'] = array(); … … 25 25 /* We should only revert the magic quotes once per page hit */ 26 26 static $revert = true; 27 if ( get_magic_quotes_gpc() && $revert) { 27 28 if (!$revert) { 29 // our work has already been done 30 return; 31 } 32 33 if ( get_magic_quotes_gpc() ) { 28 34 $_GET = Utils::stripslashes($_GET); 29 35 $_POST = Utils::stripslashes($_POST); 30 36 $_COOKIE = Utils::stripslashes($_COOKIE); 31 $revert = false;32 37 } 33 38 … … 36 41 $_COOKIE = new SuperGlobal($_COOKIE); 37 42 unset($_REQUEST); 43 44 $revert = false; 38 45 } 39 46 40 function offsetGet($index)47 public function offsetGet($index) 41 48 { 42 49 $cp = $this->getArrayCopy(); … … 60 67 * @return SuperGlobal The merged array 61 68 */ 62 function merge()69 public function merge() 63 70 { 64 71 $args = func_get_args(); … … 99 106 * @return SuperGlobal The values from this array that match the supplied keys 100 107 */ 101 function filter_keys()108 public function filter_keys() 102 109 { 103 110 $keys = array();
