Changeset 1964 for trunk/wp-register.php
- Timestamp:
- 12/16/2004 02:57:05 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-register.php
r1733 r1964 1 1 <?php 2 2 require('./wp-config.php'); 3 4 function add_magic_quotes($array) {5 foreach ($array as $k => $v) {6 if (is_array($v)) {7 $array[$k] = add_magic_quotes($v);8 } else {9 $array[$k] = addslashes($v);10 }11 }12 return $array;13 }14 15 if (!get_magic_quotes_gpc()) {16 $_GET = add_magic_quotes($_GET);17 $_POST = add_magic_quotes($_POST);18 $_COOKIE = add_magic_quotes($_COOKIE);19 }20 3 21 4 $wpvarstoreset = array('action');
Note: See TracChangeset
for help on using the changeset viewer.