Temporarily disable e-mail filter because results are incoherent and prevent e-mail password reminder

skala
Yannick Warnier 13 years ago
parent b244548961
commit 7db37248ce
  1. 1
      main/inc/lib/main_api.lib.php

@ -693,6 +693,7 @@ function api_valid_url($url, $absolute = false) {
* @return mixed Returns the e-mail if it is valid, FALSE otherwise. * @return mixed Returns the e-mail if it is valid, FALSE otherwise.
*/ */
function api_valid_email($address) { function api_valid_email($address) {
// disable for now because the results are incoherent - YW 20110926
if (function_exists('filter_var')) { // Introduced in PHP 5.2. if (function_exists('filter_var')) { // Introduced in PHP 5.2.
return filter_var($address, FILTER_VALIDATE_EMAIL); return filter_var($address, FILTER_VALIDATE_EMAIL);
} else { } else {

Loading…
Cancel
Save