Changeset 607 for branches/1.3/coverager/common.php
- Timestamp:
- 2009-07-05T08:03:56+02:00 (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
coverager/common.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
- Property svn:mergeinfo changed
/trunk merged: 418-419,424-425,429,431
- Property svn:mergeinfo changed
-
branches/1.3/coverager/common.php
r394 r607 75 75 } 76 76 77 function stripaddslashes_array($value, $mqs = false) 78 { 79 if (is_array($value)) { 80 foreach($value as $k => $v) { 81 $value[$k] = stripaddslashes_array($v, $mqs); 82 } 83 } 84 else if(is_string($value)) { 85 $value = $mqs ? str_replace('\'\'', '\'', $value) : stripslashes($value); 86 } 87 return $value; 88 } 89 77 90 error_reporting(E_ALL); 78 91 ini_set('display_errors', 'On'); 79 92 define('REQUEST_TIME', time()); 93 94 if (get_magic_quotes_gpc()) { 95 $mqs = (bool) ini_get('magic_quotes_sybase'); 96 $_GET = stripaddslashes_array($_GET, $mqs); 97 $_POST = stripaddslashes_array($_POST, $mqs); 98 $_REQUEST = stripaddslashes_array($_REQUEST, $mqs); 99 } 100 ini_set('magic_quotes_runtime', '0'); 80 101 81 102 $charset = "UTF-8";
Note: See TracChangeset
for help on using the changeset viewer.

