summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-17 19:32:53 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-17 19:32:53 +0000
commitfb577596044efb049a0ea74c7c74f7f5ebcd91d2 (patch)
treef21872ccb0e923f0b08849af8831778ba1da81c1 /install.php
parent6078c16e3e4755bf80533cb654c39bb2e7870043 (diff)
downloadbrdo-fb577596044efb049a0ea74c7c74f7f5ebcd91d2.tar.gz
brdo-fb577596044efb049a0ea74c7c74f7f5ebcd91d2.tar.bz2
#228761 by zsanmartin and roborn: Fix language code regex and correct Portugal's language code.
Diffstat (limited to 'install.php')
-rw-r--r--install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php
index 159761e78..6c01f1040 100644
--- a/install.php
+++ b/install.php
@@ -101,7 +101,7 @@ function install_main() {
// Locale selection
if (!empty($_GET['locale'])) {
- $install_locale = preg_replace('/[^a-zA-Z_0-9]/', '', $_GET['locale']);
+ $install_locale = preg_replace('/[^a-zA-Z_0-9\-]/', '', $_GET['locale']);
}
elseif (($install_locale = install_select_locale($profile)) !== FALSE) {
install_goto("install.php?profile=$profile&locale=$install_locale");