Changeset 2699 for trunk/wp-settings.php
- Timestamp:
- 07/05/2005 08:47:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r2632 r2699 137 137 require_once(ABSPATH . WPINC . '/locale.php'); 138 138 139 if ( !get_magic_quotes_gpc() ) { 140 $_GET = add_magic_quotes($_GET ); 141 $_POST = add_magic_quotes($_POST ); 142 $_COOKIE = add_magic_quotes($_COOKIE); 143 $_SERVER = add_magic_quotes($_SERVER); 139 // If already slashed, strip. 140 if ( get_magic_quotes_gpc() ) { 141 $_GET = stripslashes($_GET ); 142 $_POST = stripslashes($_POST ); 143 $_COOKIE = stripslashes($_COOKIE); 144 $_SERVER = stripslashes($_SERVER); 144 145 } 146 147 // Escape with wpdb. 148 $_GET = add_magic_quotes($_GET ); 149 $_POST = add_magic_quotes($_POST ); 150 $_COOKIE = add_magic_quotes($_COOKIE); 151 $_SERVER = add_magic_quotes($_SERVER); 145 152 146 153 function shutdown_action_hook() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)