diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-04-13 10:14:36 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-04-13 10:14:36 +0000 |
commit | 03ec11465b6e8058cb9b904e9ab111ed7d92fd75 (patch) | |
tree | 955b1d819c1b26bce41f3b39290d5216bfbae0fe | |
parent | 382953d478f1adb82ec36189272b82a6d82c9970 (diff) | |
download | wordpress-mu-03ec11465b6e8058cb9b904e9ab111ed7d92fd75.tar.gz wordpress-mu-03ec11465b6e8058cb9b904e9ab111ed7d92fd75.tar.xz wordpress-mu-03ec11465b6e8058cb9b904e9ab111ed7d92fd75.zip |
Check the illegal names is set before checking against it
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@961 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-signup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-signup.php b/wp-signup.php index 0ce1087..d0b6e6f 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -356,7 +356,7 @@ function confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_emai }
// Main
-if( in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
+if( !empty( get_site_option( 'illegal_names' ) ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
header( "Location: http://{$current_site->domain}{$current_site->path}" );
die();
}
|