summaryrefslogtreecommitdiffstats
path: root/wp-admin/install.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
commitfa9a33d818470a5796f0ff8797f98b510ed8de18 (patch)
treebde6a1eede376f9b5df5898ce812330152984d8e /wp-admin/install.php
parentReleasing progress-linux version 6.4.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.tar.xz
wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.zip
Merging upstream version 6.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-admin/install.php')
-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'];
}