WebGUI::Form::Url::getValue returns blank rather than undef for blank fields

This commit is contained in:
David Delikat 2009-01-27 20:05:13 +00:00
parent 0a8cf1c9f7
commit 3bbc8a7d4b
2 changed files with 2 additions and 1 deletions

View file

@ -92,7 +92,7 @@ sub getValue {
$value =~ tr/\r\n//d;
# empty
if ($value eq "" || $value =~ m{^http://$}i) {
return undef;
return "";
}
# proper email url
elsif ($value =~ /mailto:/) {