Changeset 2700
- Timestamp:
- 07/06/2005 01:12:38 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-includes/functions-formatting.php (modified) (1 diff)
-
wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r2699 r2700 531 531 532 532 return $wpdb->escape($gpc); 533 } 534 535 536 function stripslashes_deep($value) 537 { 538 $value = is_array($value) ? 539 array_map('stripslashes_deep', $value) : 540 stripslashes($value); 541 542 return $value; 533 543 } 534 544 -
trunk/wp-settings.php
r2699 r2700 139 139 // If already slashed, strip. 140 140 if ( get_magic_quotes_gpc() ) { 141 $_GET = stripslashes ($_GET );142 $_POST = stripslashes ($_POST );143 $_COOKIE = stripslashes ($_COOKIE);144 $_SERVER = stripslashes ($_SERVER);141 $_GET = stripslashes_deep($_GET ); 142 $_POST = stripslashes_deep($_POST ); 143 $_COOKIE = stripslashes_deep($_COOKIE); 144 $_SERVER = stripslashes_deep($_SERVER); 145 145 } 146 146
Note: See TracChangeset
for help on using the changeset viewer.