summaryrefslogtreecommitdiffstats
path: root/wp-admin/install.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wp-admin/install.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-admin/install.php b/wp-admin/install.php
index 971392d..34d5d4c 100644
--- a/wp-admin/install.php
+++ b/wp-admin/install.php
@@ -6,7 +6,7 @@
* @subpackage Administration
*/
-// Sanity check.
+// Confidence check.
if ( false ) {
?>
<!DOCTYPE html>
@@ -329,7 +329,7 @@ if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
*/
$language = '';
if ( ! empty( $_REQUEST['language'] ) ) {
- $language = preg_replace( '/[^a-zA-Z0-9_]/', '', $_REQUEST['language'] );
+ $language = sanitize_locale_name( $_REQUEST['language'] );
} elseif ( isset( $GLOBALS['wp_local_package'] ) ) {
$language = $GLOBALS['wp_local_package'];
}