diff --git a/drupal/profiles/panopoly/modules/contrib/wysiwyg_filter/wysiwyg_filter.admin.inc b/drupal/profiles/panopoly/module index 38fb424..121e48a 100644 --- a/drupal/profiles/panopoly/modules/contrib/wysiwyg_filter/wysiwyg_filter.admin.inc +++ b/drupal/profiles/panopoly/modules/contrib/wysiwyg_filter/wysiwyg_filter.admin.inc @@ -269,7 +269,7 @@ function wysiwyg_filter_filter_wysiwyg_settings_validate($form, &$form_state) { // *** validate nofollow_domains *** $nofollow_domains = array_filter(explode(',', preg_replace('#\s+#', ',', $values['nofollow_domains']))); // form2db foreach ($nofollow_domains as $nofollow_domain) { - if (!preg_match('#^([a-z0-9]([-a-z0-9]*)?\.)+([a-z]+)$#i', $nofollow_domain)) { + if ($nofollow_domain != 'default' && !preg_match('#^([a-z0-9]([-a-z0-9]*)?\.)+([a-z]+)$#i', $nofollow_domain)) { form_set_error('nofollow_domains', t('Invalid domain %domain. Please, enter a comma separated list of valid domain names } }