summaryrefslogtreecommitdiffstats
path: root/wp-admin
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-22 20:01:55 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-22 20:01:55 +0000
commit169da18f2ac90414686ced7ff77fca5439e9c20f (patch)
tree23a7b9fe7200601f225b559c1e100ac9236f4d75 /wp-admin
parent5fd2feb54c38fc6f357026aadd8abfd224631c26 (diff)
downloadwordpress-mu-169da18f2ac90414686ced7ff77fca5439e9c20f.tar.gz
wordpress-mu-169da18f2ac90414686ced7ff77fca5439e9c20f.tar.xz
wordpress-mu-169da18f2ac90414686ced7ff77fca5439e9c20f.zip
Trim each element of the banned email list
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@897 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
-rw-r--r--wp-admin/wpmu-edit.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-admin/wpmu-edit.php b/wp-admin/wpmu-edit.php
index 2078ba5..b7827e2 100644
--- a/wp-admin/wpmu-edit.php
+++ b/wp-admin/wpmu-edit.php
@@ -24,7 +24,11 @@ switch( $_REQUEST[ 'action' ] ) {
update_site_option( "limited_email_domains", '' );
}
if( $_POST[ 'banned_email_domains' ] != '' ) {
- update_site_option( "banned_email_domains", split( "\n", stripslashes($_POST[ 'banned_email_domains' ]) ) );
+ $banned_email_domains = split( "\n", stripslashes($_POST[ 'banned_email_domains' ]) );
+ foreach( $banned_email_domains as $domain ) {
+ $banned[] = trim( $domain );
+ }
+ update_site_option( "banned_email_domains", $banned );
} else {
update_site_option( "banned_email_domains", '' );
}