Changeset 1108 for trunk/wp-admin/templates.php
- Timestamp:
- 04/20/2004 10:56:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/templates.php
r1100 r1108 30 30 31 31 if (!get_magic_quotes_gpc()) { 32 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);33 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);34 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);32 $_GET = add_magic_quotes($_GET); 33 $_POST = add_magic_quotes($_POST); 34 $_COOKIE = add_magic_quotes($_COOKIE); 35 35 } 36 36 … … 39 39 $wpvar = $wpvarstoreset[$i]; 40 40 if (!isset($$wpvar)) { 41 if (empty($ HTTP_POST_VARS["$wpvar"])) {42 if (empty($ HTTP_GET_VARS["$wpvar"])) {41 if (empty($_POST["$wpvar"])) { 42 if (empty($_GET["$wpvar"])) { 43 43 $$wpvar = ''; 44 44 } else { 45 $$wpvar = $ HTTP_GET_VARS["$wpvar"];45 $$wpvar = $_GET["$wpvar"]; 46 46 } 47 47 } else { 48 $$wpvar = $ HTTP_POST_VARS["$wpvar"];48 $$wpvar = $_POST["$wpvar"]; 49 49 } 50 50 } … … 62 62 } 63 63 64 $newcontent = stripslashes($ HTTP_POST_VARS['newcontent']);65 $file = $ HTTP_POST_VARS['file'];64 $newcontent = stripslashes($_POST['newcontent']); 65 $file = $_POST['file']; 66 66 $file = validate_file($file); 67 67 $real_file = '../' . $file;
Note: See TracChangeset
for help on using the changeset viewer.