Ticket #5901: get_user_option-sanitization.diff
| File get_user_option-sanitization.diff, 382 bytes (added by filosofo, 7 months ago) |
|---|
-
wp-includes/user.php
old new 82 82 function get_user_option( $option, $user = 0 ) { 83 83 global $wpdb; 84 84 85 $option = preg_replace('|[^a-z0-9_]|i', '', $option); 85 86 if ( empty($user) ) 86 87 $user = wp_get_current_user(); 87 88 else
